2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 /*****************************************************************************
10 AROS_LH0(APTR, SuperState,
15 struct ExecBase *, SysBase, 25, Exec)
18 Enter supervisor mode (like Supervisor()), but return on the normal
19 user stack, so that user stack variables are still there. A call
20 to Userstate() will end this mode.
25 Old supervisor stack. NULL if called from supervisor mode.
28 The user stack must be big enough to hold all possible nestings
36 UserState(), Supervisor()
42 ******************************************************************************/
48 .globl AROS_SLIB_ENTRY(SuperState,Exec)
49 .type AROS_SLIB_ENTRY(SuperState,Exec),@function
50 AROS_SLIB_ENTRY
(SuperState
,Exec
):
55 .global _Superstate_trp:
57 /* no trap? We are in usermode, so restore lr */
61 /* return 0, because we are in supervisor mode */
63 /* return from this subroutine */