Check for SYS/GL during library init. Reason is that
[AROS.git] / rom / kernel / issuper.c
blob6ce79dd15321dd1d514235bf5660798e699d8253
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <aros/libcall.h>
11 #include <kernel_base.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH0I(int, KrnIsSuper,
20 /* SYNOPSIS */
22 /* LOCATION */
23 struct KernelBase *, KernelBase, 13, Kernel)
25 /* FUNCTION
26 Determine if the caller is running in supervisor mode
28 INPUTS
29 None
31 RESULT
32 Nonzero for supervisor mode, zero for user mode
34 NOTES
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).
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 ******************************************************************************/
50 AROS_LIBFUNC_INIT
52 /* The implementation of this function is entirely architecture-specific */
53 return FALSE;
55 AROS_LIBFUNC_EXIT