oops .. forgot to offset from objects bounds
[AROS.git] / rom / kernel / getsystemattr.c
blobf3b153360a9c4c55233affdb9651f4e240a54771
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
9 #include <exec/execbase.h>
10 #include <proto/exec.h>
12 #include <kernel_base.h>
14 /*****************************************************************************
16 NAME */
17 #include <proto/kernel.h>
19 AROS_LH1(intptr_t, KrnGetSystemAttr,
21 /* SYNOPSIS */
22 AROS_LHA(uint32_t, id, D0),
24 /* LOCATION */
25 struct KernelBase *, KernelBase, 29, Kernel)
27 /* FUNCTION
28 Get value of internal system attributes.
29 Currently defined attributes are:
31 KATTR_Architecture [.G] (char *) - Name of architecture the kernel built for.
33 INPUTS
34 id - ID of the attribute to get
36 RESULT
37 Value of the attribute
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
47 INTERNALS
49 ******************************************************************************/
51 AROS_LIBFUNC_INIT
53 switch (id)
55 case KATTR_Architecture:
56 return (intptr_t)AROS_ARCHITECTURE;
58 default:
59 return -1;
62 AROS_LIBFUNC_EXIT