prism2.device: Compiler delint
[AROS.git] / arch / .unmaintained / dummy / userstate.c
blob087f82c61e341dc23b0264a3c9f90df7197f2469
1 |*****************************************************************************
3 | NAME
5 | __AROS_LH1(void, UserState,
7 | SYNOPSIS
8 | __AROS_LA(APTR, sysStack, D0),
10 | LOCATION
11 | struct ExecBase *, SysBase, 26, Exec)
13 | FUNCTION
14 | Return to user mode after a call to SuperState().
16 | INPUTS
17 | sysStack - The returncode from SuperState().
19 | RESULT
21 | NOTES
23 | EXAMPLE
25 | BUGS
27 | SEE ALSO
28 | SuperState(), Supervisor()
30 | INTERNALS
32 | HISTORY
34 |******************************************************************************
36 .globl _Exec_UserState
37 _Exec_UserState:
38 | simply return if argument is NULL
39 tstl d0
40 jne nonzero
41 rts
42 nonzero:
43 | Transfer sp
44 movel sp,usp
46 | Set old supervisor sp
47 movel d0,sp
49 | And return. This jumps directly to a rts.
50 rte