2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <kernel_base.h>
13 /*****************************************************************************
16 #include <proto/kernel.h>
18 AROS_LH0I(int, KrnIsSuper
,
23 struct KernelBase
*, KernelBase
, 13, Kernel
)
26 Determine if the caller is running in supervisor mode
32 Nonzero for supervisor mode, zero for user mode
35 Callers should only test the return value against zero.
36 Nonzero values may actually be different, since they
37 may carry some private implementation-dependent information
38 (like CPU privilege level, for example).
48 ******************************************************************************/
52 /* The implementation of this function is entirely architecture-specific */