Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / .unmaintained / m68k-emul / permit.c
blobf1002489c8ab26e461a9286b2e921d2f97bfefb1
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <exec/execbase.h>
7 #include <proto/exec.h>
9 /******************************************************************************
11 NAME
12 #include <proto/exec.h>
14 AROS_LH0(void, Permit,
16 LOCATION
17 struct ExecBase *, SysBase, 23, Exec)
19 FUNCTION
20 This function activates the dispatcher again after a call to Permit().
22 INPUTS
23 None.
25 RESULT
26 None.
28 NOTES
29 This function preserves all registers.
31 EXAMPLE
33 BUGS
35 SEE ALSO
36 Forbid(), Disable(), Enable()
38 INTERNALS
40 HISTORY
42 ******************************************************************************/
44 /* The real function is written in assembler as stub which calls me */
45 void _Permit (struct ExecBase * SysBase)
47 if ((--SysBase->TDNestCnt) < 0
48 && (SysBase->AttnResched & 0x80)
49 && SysBase->IDNestCnt < 0
52 SysBase->AttnResched &= ~0x80;
54 Switch ();
56 } /* _Permit */