added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / arch / x86_64-pc / exec / disable.c
blobd88f2edb851ff9380caac6b3019f06222973592d
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id: disable.c 21505 2004-04-11 19:44:09Z stegerg $
5 Desc: i386unix version of Disable()
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>
14 #include <proto/kernel.h>
16 #undef Exec
17 #ifdef UseExecstubs
18 # define Exec _Exec
19 #endif
21 AROS_LH0(void, Disable,
22 struct ExecBase *, SysBase, 20, Exec)
24 #undef Exec
25 AROS_LIBFUNC_INIT
26 void *KernelBase = TLS_GET(KernelBase);
28 /* Georg Steger */
29 if (KernelBase)
30 KrnCli();
32 AROS_ATOMIC_INC(SysBase->IDNestCnt);
34 AROS_LIBFUNC_EXIT