Added support for compiling C++ files. It isn't included for all
[AROS.git] / arch / all-mingw32 / kernel / sti.c
blob0de8e18ea6bb80809714af38bec7dc283bf9318b
1 #include <aros/libcall.h>
3 #include "kernel_base.h"
5 AROS_LH0I(void, KrnSti,
6 struct KernelBase *, KernelBase, 10, Kernel)
8 AROS_LIBFUNC_INIT
11 * If we are in supervisor mode, don't do anything. Interrupts will
12 * be enabled upon leaving supervisor mode by core_LeaveInterrupt().
13 * Otherwise we can end up in nested interrupts
15 if (*KernelIFace.SuperState == 0)
16 *KernelIFace.IntState = INT_ENABLE;
18 AROS_LIBFUNC_EXIT