2 Copyright © 1995-2001, 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
, sysStack
, D0
),
20 struct ExecBase
*, SysBase
, 26, Exec
)
23 Return to user mode after a call to SuperState().
26 sysStack - The return value from SuperState()
29 The system will be back to normal.
38 SuperState(), Supervisor()
45 ******************************************************************************/
49 /* By default there is nothing to do. */
53 "movl %%esp,0x0c(%%eax)\n\t" /* put USP onto exception stack frame */
54 "movl %%eax,%%esp\n\t" /* SSP = SP */
56 "movl %%eax,(%%esp)\n\t" /* return at this address */