Forgotten commit. Added automount.
[AROS.git] / arch / .unmaintained / dummy / enable.c
blobc6643bf3e983e56f2b9820baa2aead648eabc0b5
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define timeval sys_timeval
7 #include <signal.h>
8 #undef timeval
9 #include <exec/execbase.h>
11 void en (void);
13 /******************************************************************************
15 NAME */
16 #include <proto/exec.h>
18 AROS_LH0(void, Enable,
20 /* LOCATION */
21 struct ExecBase *, SysBase, 21, Exec)
23 /* FUNCTION
24 This function reenables the delivery of interrupts after a call to
25 Disable().
27 INPUTS
28 None.
30 RESULT
31 None.
33 NOTES
34 This function may be used from interrupts.
36 This function preserves all registers.
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 Forbid(), Permit(), Disable()
45 INTERNALS
47 HISTORY
49 ******************************************************************************/
51 if ((-- SysBase->IDNestCnt) < 0)
52 en ();
54 if ((SysBase->AttnResched & 0x80) && SysBase->TDNestCnt<0)
56 SysBase->AttnResched &= ~0x80;
58 Switch ();
60 } /* Enable */
62 void en (void)
64 sigset_t set;
66 sigfillset (&set);
68 sigprocmask (SIG_UNBLOCK, &set, NULL);
69 } /* en */