Updated PCI IDs to latest snapshot.
[tangerine.git] / arch / all-unix / exec / enable.c
blobbf987cfc94c27b9575c98c675f6fb3ffaa4293c7
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: i386unix version of Enable()
6 Lang: english
7 */
9 #include <exec/tasks.h>
10 #include <exec/execbase.h>
11 #include <aros/libcall.h>
12 #include <aros/atomic.h>
13 #include <proto/exec.h>
15 #include <stdlib.h>
16 #include <signal.h>
18 extern sigset_t sig_int_mask; /* mask of sig_t that are ints not traps */
20 #undef Exec
21 #ifdef UseExecstubs
22 # define Exec _Exec
23 #endif
25 AROS_LH0(void, Enable,
26 struct ExecBase *, SysBase, 21, Exec)
29 #undef Exec
31 AROS_LIBFUNC_INIT
33 AROS_ATOMIC_DEC(SysBase->IDNestCnt);
35 if(SysBase->IDNestCnt < 0)
37 sigprocmask(SIG_UNBLOCK, &sig_int_mask, NULL);
40 AROS_LIBFUNC_EXIT