2 Copyright � 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/symbolsets.h>
7 #include <exec/types.h>
9 #include "kernel_base.h"
10 #include "kernel_cpu.h"
13 * The job of this function is to probe the CPU and set up kb_ContextFlags
15 * kb_ContextFlags is whatever needs to be passed to KrnCreateContext() in
16 * order to create a right thing. kb_ContextSize is total length of our
17 * context area (including FPU data and private data). It is needed for
18 * complete context save/restore during Exec exceptions processing
22 #define ARM_FPU_TYPE FPU_VFP
23 #define ARM_FPU_SIZE 32*64
24 #endif // !ARM_FPU_TYPE
27 static int cpu_Init(struct KernelBase
*KernelBase
)
30 * On ARM the different thing is FPU type.
31 * TODO: in future this can be extended to support more than
34 KernelBase
->kb_ContextFlags
= ARM_FPU_TYPE
;
35 KernelBase
->kb_ContextSize
= sizeof(struct AROSCPUContext
) + ARM_FPU_SIZE
;
40 ADD2INITLIB(cpu_Init
, 5);