2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
9 #include <exec/execbase.h>
10 #include <proto/exec.h>
12 #include <kernel_base.h>
14 /*****************************************************************************
17 #include <proto/kernel.h>
19 AROS_LH1(intptr_t, KrnGetSystemAttr
,
22 AROS_LHA(uint32_t, id
, D0
),
25 struct KernelBase
*, KernelBase
, 29, Kernel
)
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 KATTR_PeripheralBase [.G] IPTR - IO Base address for ARM peripherals
36 id - ID of the attribute to get
39 Value of the attribute
51 ******************************************************************************/
57 case KATTR_Architecture
:
58 return (intptr_t)AROS_ARCHITECTURE
;