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