Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / .unmaintained / ppc-native / exec / userstate.s
blob55ac76c4423e40b7e903e8cacf77160d3396969a
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*****************************************************************************
8 NAME
10 AROS_LH1(void, UserState,
12 SYNOPSIS
13 AROS_LHA(APTR, sysStack, D0),
15 LOCATION
16 struct ExecBase *, SysBase, 26, Exec)
18 FUNCTION
19 Return to user mode after a call to SuperState().
21 INPUTS
22 sysStack - The returncode from SuperState().
24 RESULT
26 NOTES
28 EXAMPLE
30 BUGS
32 SEE ALSO
33 SuperState(), Supervisor()
35 INTERNALS
37 HISTORY
39 ******************************************************************************/
41 #include "machine.i"
43 .text
44 .balign 4
45 .globl AROS_SLIB_ENTRY(UserState,Exec)
46 .type AROS_SLIB_ENTRY(UserState,Exec),@function
47 AROS_SLIB_ENTRY(UserState,Exec):
48 /* simply return if argument is NULL */
49 push scr
50 mflr scr
51 push scr
52 cmpdi arg0,0
53 bne nonzero
54 pop scr
55 mtlr scr
56 pop scr
57 nonzero:
58 pop scr
59 mtsrr0 scr
60 pop scr
61 rfi