Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / ppc-sam440 / exec / userstate.c
blobe3315ba29e34a88139c6393438d0d4d17c79cd07
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/amcc440.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() */