- Removed unused HandleEvent method.
[AROS.git] / arch / arm-all / dos / probecpu.c
blob0e4a8a467f3ef6902743ca396cac23b7a7262a04
1 /*
2 Copyright © 2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Obtain ARM CPU information for ELF loader
6 Lang: english
7 */
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");
20 if (!ProcessorBase)
22 D(bug("[DOS] No processor.resource! Won't boot!\n"));
23 return FALSE;
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
31 * data untouched.
33 base->arm_Arch = CPUFAMILY_ARM_7;
34 base->arm_VFP = TRUE;
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,
40 TAG_DONE);
42 D(bug("[DOS] CPU architecture: %d, VFP support: %d, VFPv3 support: %d\n", base->arm_Arch, base->arm_VFP, base->arm_VFP_v3));
44 return TRUE;
47 ADD2INITLIB(ProbeCPU, 0);