White space fixes, detab.
[AROS.git] / rom / kernel / getsystemattr.c
blob3909013deb8e7fac5708b3a6abc49a1f64e48606
1 #include <aros/kernel.h>
2 #include <exec/execbase.h>
3 #include <proto/exec.h>
5 #include <kernel_base.h>
7 /*****************************************************************************
9 NAME */
10 #include <proto/kernel.h>
12 AROS_LH1(intptr_t, KrnGetSystemAttr,
14 /* SYNOPSIS */
15 AROS_LHA(uint32_t, id, D0),
17 /* LOCATION */
18 struct KernelBase *, KernelBase, 29, Kernel)
20 /* FUNCTION
21 Get value of internal system attributes.
22 Currently defined attributes are:
24 KATTR_Architecture [.G] (char *) - Name of architecture the kernel built for.
26 INPUTS
27 id - ID of the attribute to get
29 RESULT
30 Value of the attribute
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 KrnSetSystemAttr()
41 INTERNALS
43 ******************************************************************************/
45 AROS_LIBFUNC_INIT
47 switch (id)
49 case KATTR_Architecture:
50 return (intptr_t)AROS_ARCHITECTURE;
52 default:
53 return -1;
56 AROS_LIBFUNC_EXIT