Debugging: Don't treat dn_Startup as an FSSM if it's less than 64.
[AROS.git] / arch / ppc-chrp / exec / userstate.c
blob870f97624c2e115093dc38b3c817982dea77a8a4
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>
13 #include <asm/mpc5200b.h>
15 AROS_LH1(void, UserState,
17 /* SYNOPSIS */
18 AROS_LHA(APTR, sysStack, D0),
20 /* LOCATION */
21 struct ExecBase *, SysBase, 26, Exec)
23 /* FUNCTION
24 Return to user mode after a call to SuperState().
26 INPUTS
27 sysStack - The return value from SuperState()
29 RESULT
30 The system will be back to normal.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 SuperState(), Supervisor()
41 INTERNALS
42 Undo SuperState()
44 ******************************************************************************/
46 AROS_LIBFUNC_INIT
48 wrmsr(rdmsr() | (MSR_PR));
50 sysStack = 0; /* Get rid of the compiler warning */
52 AROS_LIBFUNC_EXIT
53 } /* UserState() */