1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
4 #include <kernel_base.h>
6 /*****************************************************************************
9 #include <proto/kernel.h>
11 AROS_LH0I(int, KrnIsSuper
,
16 struct KernelBase
*, KernelBase
, 13, Kernel
)
19 Determine if the caller is running in supervisor mode
25 Nonzero for supervisor mode, zero for user mode
28 Callers should only test the return value against zero.
29 Nonzero values may actually be different, since they
30 may carry some private implementation-dependent information
31 (like CPU privilege level, for example).
41 ******************************************************************************/
45 /* The implementation of this function is entirely architecture-specific */