Merged in MorphOS-specific improvements from MorphOS team.
[AROS.git] / rom / kernel / issuper.c
blobb1e13b7cd2311d507a4e3af53eff5c4c84a4bfca
1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
4 #include <kernel_base.h>
6 /*****************************************************************************
8 NAME */
9 #include <proto/kernel.h>
11 AROS_LH0I(int, KrnIsSuper,
13 /* SYNOPSIS */
15 /* LOCATION */
16 struct KernelBase *, KernelBase, 13, Kernel)
18 /* FUNCTION
19 Determine if the caller is running in supervisor mode
21 INPUTS
22 None
24 RESULT
25 Nonzero for supervisor mode, zero for user mode
27 NOTES
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).
33 EXAMPLE
35 BUGS
37 SEE ALSO
39 INTERNALS
41 ******************************************************************************/
43 AROS_LIBFUNC_INIT
45 /* The implementation of this function is entirely architecture-specific */
46 return FALSE;
48 AROS_LIBFUNC_EXIT