Wanderer/Info: fix compilation
[AROS.git] / arch / .unmaintained / m68k-emul / disable.s
blob31e2244f8df0623130e1ffa11703bd55d4b9502b
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Exec function Disable
6 Lang: english
7 */
9 /******************************************************************************
11 NAME
12 AROS_LH0(void, Disable,
14 LOCATION
15 struct ExecBase *, SysBase, 20, Exec)
17 FUNCTION
19 INPUTS
21 RESULT
23 NOTES
25 EXAMPLE
27 BUGS
29 SEE ALSO
31 INTERNALS
33 HISTORY
35 ******************************************************************************/
37 #include "machine.i"
39 .text
40 .balign 16
41 .globl AROS_SLIB_ENTRY(Disable,Exec)
42 .type AROS_SLIB_ENTRY(Disable,Exec),@function
44 AROS_SLIB_ENTRY(Disable,Exec):
45 jbsr AROS_CSYMNAME(os_disable)
46 #if !UseRegisterArgs
47 move.l %a6,-(%sp)
49 /* Get SysBase */
50 move.l 8(%sp),%a6
51 #endif
53 /* increment nesting count and return */
54 addq.b #1,IDNestCnt(%a6)
55 #if !UseRegisterArgs
56 move.l (%sp)+,%a6
57 #endif
58 rts