08c8bb0d217b509e829a3c2ce1e477fc3731d655
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 ******************************************************************************/
52 " mov sp, %[superSP] \n"
53 " cpsie i, %[mode_user] \n"
56 : : [superSP
] "r" (superSP
), [mode_user
] "I" (CPUMODE_USER
) : "r1" );