2 Copyright © 2013, The AROS Development Team. All rights reserved.
5 Desc: UserState() - Return to normal mode after changing things.
9 /*****************************************************************************
12 #include <proto/exec.h>
14 AROS_LH1(void, UserState
,
17 AROS_LHA(APTR
, superSP
, D0
),
20 struct ExecBase
*, SysBase
, 26, Exec
)
23 Return to user mode after a call to SuperState().
26 superSP - The return value from SuperState()
29 The system will be back to normal.
38 SuperState(), Supervisor()
43 ******************************************************************************/
49 " mov sp, %[superSP] \n"
50 " cps %[mode_user] \n"
52 : : [superSP
] "X" (superSP
), [mode_user
] "I" (CPUMODE_USER
));