Wanderer/Info: fix compilation
[AROS.git] / arch / .unmaintained / m68k-emul / forbid.s
blob218d2538bd057b23a99ec8c6ed75ee1c787408f7
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Exec function Forbid
6 Lang: english
7 */
9 /******************************************************************************
11 NAME
12 AROS_LH0(void, Forbid,
14 LOCATION
15 struct ExecBase *, SysBase, 22, 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(Forbid,Exec)
42 .type AROS_SLIB_ENTRY(Forbid,Exec),@function
43 AROS_SLIB_ENTRY(Forbid,Exec):
44 #if !UseRegisterArgs
45 /* Preserve all registers */
46 move.l %a6,-(%sp)
48 /* Get SysBase */
49 move.l 8(%sp),%a6
50 #endif
52 /* Increase nesting count */
53 addq.b #1,TDNestCnt(%a6)
55 /* All done */
56 #if !UseRegisterArgs
57 move.l (%sp)+,%a6
58 #endif
59 rts