2 Copyright © 2013, The AROS Development Team. All rights reserved.
5 Desc: UserState() - Return to normal mode after changing things.
9 #include <proto/exec.h>
11 /* See rom/exec/userstate.c for documentation */
13 AROS_LH1(void, UserState
,
14 AROS_LHA(APTR
, superSP
, D0
),
15 struct ExecBase
*, SysBase
, 26, Exec
)
24 " mov sp, %[superSP] \n"
25 " cpsie i, %[mode_user] \n"
28 : : [superSP
] "r" (superSP
), [mode_user
] "I" (CPUMODE_USER
) : "r1" );