Test initialisation of MUIA_List_AdjustWidth and MUIA_List_AdjustHeight, and
[AROS.git] / arch / arm-native / kernel / issuper.c
blob7822d68213f039b4f80f75b46ff876971c36de83
1 /*
2 Copyright © 2013, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/kernel.h>
7 #include <aros/libcall.h>
9 #include <aros/arm/cpucontext.h>
11 #include <kernel_base.h>
13 #include <proto/kernel.h>
15 /* See rom/kernel/issuper.c for documentation */
17 AROS_LH0I(int, KrnIsSuper,
18 struct KernelBase *, KernelBase, 13, Kernel)
20 AROS_LIBFUNC_INIT
22 register unsigned int reg;
23 asm volatile("mrs %[reg], cpsr" : [reg] "=r" (reg) );
25 return !(((reg & CPUMODE_MASK) == CPUMODE_USER) || ((reg & CPUMODE_MASK) == CPUMODE_SYSTEM));
27 AROS_LIBFUNC_EXIT