2 Copyright © 2011, The AROS Development Team. All rights reserved.
5 Desc: Obtain ARM CPU information for ELF loader
9 #include <aros/debug.h>
10 #include <aros/symbolsets.h>
11 #include <resources/processor.h>
12 #include <proto/processor.h>
14 #include "dos_intern.h"
16 static ULONG
ProbeCPU(struct IntDosBase
*base
)
18 APTR ProcessorBase
= OpenResource("processor.resource");
22 D(bug("[DOS] No processor.resource! Won't boot!\n"));
27 * Durty hack allowing to boot up a BSP without working processor.resource implementation.
28 * It allows you to run any binaries. But be careful! It's strongly recommended to implement
29 * processor.resource for all ARM ports.
30 * The hack is based on the fact that not implemented processor.resource tags will leave their
33 base
->arm_Arch
= CPUFAMILY_ARM_7
;
35 base
->arm_VFP_v3
= TRUE
;
37 GetCPUInfoTags(GCIT_Family
, &base
->arm_Arch
,
38 GCIT_SupportsVFP
, &base
->arm_VFP
,
39 GCIT_SupportsVFPv3
, &base
->arm_VFP_v3
,
42 D(bug("[DOS] CPU architecture: %d, VFP support: %d, VFPv3 support: %d\n", base
->arm_Arch
, base
->arm_VFP
, base
->arm_VFP_v3
));
47 ADD2INITLIB(ProbeCPU
, 0);