revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-mingw32 / kernel / sti.c
blob8a9438fb528d058e401a03295f3eafa299072cbf
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/libcall.h>
8 #include "kernel_base.h"
10 AROS_LH0I(void, KrnSti,
11 struct KernelBase *, KernelBase, 10, Kernel)
13 AROS_LIBFUNC_INIT
16 * If we are in supervisor mode, don't do anything. Interrupts will
17 * be enabled upon leaving supervisor mode by core_LeaveInterrupt().
18 * Otherwise we can end up in nested interrupts
20 if (*KernelIFace.SuperState == 0)
21 *KernelIFace.IntState = INT_ENABLE;
23 AROS_LIBFUNC_EXIT