2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Exec function Enable
9 /******************************************************************************
12 AROS_LH0(void, Enable,
15 struct ExecBase *, SysBase, 21, Exec)
35 ******************************************************************************/
41 .globl AROS_SLIB_ENTRY(Enable,Exec)
42 .type AROS_SLIB_ENTRY(Enable,Exec),@function
43 AROS_SLIB_ENTRY
(Enable
,Exec
):
45 /* Preserve all registers */
52 /* Decrement and test IDNestCnt */
53 subq.
b #1,IDNestCnt(%a6)
55 jbsr AROS_CSYMNAME
(os_enable
)
57 /* return if there are no delayed switches pending. */
58 btst
#7,AttnResched+1(%a6)
61 /* if TDNestCnt is not -1 taskswitches are still forbidden */
65 /* Unset delayed switch bit and do the delayed switch */
66 bclr #7,AttnResched+1(%a6)