2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: SuperState() - Switch the processor into a higher plane.
9 /*****************************************************************************
12 #include <proto/exec.h>
14 AROS_LH0(APTR
, SuperState
,
17 struct ExecBase
*, SysBase
, 25, Exec
)
20 Enter supervisor mode (like Supervisor()), but return on the user
21 stack. This will mean that the user stack variables are still there.
22 A call to UserState() will end this mode.
28 The old supervisor stack. This must be passed to UserState(). If the
29 processor was already in supervisor mode, then this function will
30 return NULL. In that case do NOT call UserState().
33 This is not a good function to use, it has limited scope, and will
34 probably be even less useful in the future.
39 You can easily cause your system to cease operating normally.
42 Supervisor(), UserState()
45 For extra details see Supervisor().
47 ******************************************************************************/
51 /* Again see a real implementation for more information.
53 You will have to change into supervisor mode, and then change the
54 stack to the original user stack before returning.
57 /* We have to return something. NULL is an invalid address for a
58 stack, so it could be used to say that this function does