- Exec builds and links after stoling stuff from NicJA :) still needs a .bss section
[AROS.git] / arch / arm-raspidzy / exec / userstate.c
blob4c342df9b9ae2091820065f0ef84f8fd6ee8ddc0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: UserState() - Return to normal mode after changing things.
6 Lang: english
7 */
9 /*****************************************************************************
11 NAME */
12 #include <proto/exec.h>
14 AROS_LH1(void, UserState,
16 /* SYNOPSIS */
17 AROS_LHA(APTR, sysStack, D0),
19 /* LOCATION */
20 struct ExecBase *, SysBase, 26, Exec)
22 /* FUNCTION
23 Return to user mode after a call to SuperState().
25 INPUTS
26 sysStack - The return value from SuperState()
28 RESULT
29 The system will be back to normal.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 SuperState(), Supervisor()
40 INTERNALS
41 Undo SuperState()
43 ******************************************************************************/
45 AROS_LIBFUNC_INIT
47 asm("cps #0x1f\n"); /* switch to system mode */
49 sysStack = 0; /* Get rid of the compiler warning */
51 AROS_LIBFUNC_EXIT
52 } /* UserState() */