1 #include <aros/symbolsets.h>
2 #include <exec/types.h>
4 #include "kernel_base.h"
7 * The job of this function is to probe the CPU and set up kb_ContextFlags
9 * kb_ContextFlags is whatever needs to be passed to KrnCreateContext() in
10 * order to create a right thing. kb_ContextSize is total length of our
11 * context area (including FPU data and private data). It is needed for
12 * complete context save/restore during Exec exceptions processing
14 static int cpu_Init(struct KernelBase
*KernelBase
)
17 * On ARM the different thing is FPU type.
18 * TODO: in future this can be extended to support more than
21 KernelBase
->kb_ContextFlags
= ARM_FPU_TYPE
;
22 KernelBase
->kb_ContextSize
= sizeof(struct AROSCPUContext
) + ARM_FPU_SIZE
;
27 ADD2INITLIB(cpu_Init
, 5);