Wanderer/Info: fix compilation
[AROS.git] / arch / .unmaintained / m68k-emul / enable.c
blob52e789194e940f08d3cc076f370a06a554ef9a80
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang:
7 */
9 #include <exec/execbase.h>
10 #include <proto/exec.h>
11 #include <signal.h>
12 #include <stdio.h>
14 void _os_enable (void);
15 extern int supervisor;
17 /******************************************************************************
19 NAME
20 AROS_LH0(void, Enable,
22 LOCATION
23 struct ExecBase *, SysBase, 21, Exec)
25 FUNCTION
27 INPUTS
29 RESULT
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 HISTORY
43 ******************************************************************************/
45 void _Enable (struct ExecBase * SysBase)
47 if (--SysBase->IDNestCnt < 0)
49 _os_enable ();
51 if ((SysBase->AttnResched & 0x80)
52 || SysBase->TDNestCnt >= 0
55 SysBase->AttnResched &= ~0x80;
57 Switch ();
60 } /* _Enable */
62 void _os_enable (void)
64 sigset_t set;
66 /* if (supervisor)
68 fprintf (stderr, "Enable() called in supervisor mode\n");
69 } */
71 sigfillset (&set);
73 sigprocmask (SIG_UNBLOCK, &set, NULL);
74 } /* _os_enable */