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"
12 * The job of this function is to probe the CPU and set up kb_ContextFlags
14 * kb_ContextFlags is whatever needs to be passed to KrnCreateContext() in
15 * order to create a right thing. kb_ContextSize is total length of our
16 * context area (including FPU data and private data). It is needed for
17 * complete context save/restore during Exec exceptions processing
19 static int cpu_Init(struct KernelBase
*KernelBase
)
22 * On ARM the different thing is FPU type.
23 * TODO: in future this can be extended to support more than
26 KernelBase
->kb_ContextFlags
= ARM_FPU_TYPE
;
27 KernelBase
->kb_ContextSize
= sizeof(struct AROSCPUContext
) + ARM_FPU_SIZE
;
32 ADD2INITLIB(cpu_Init
, 5);