cleanup debug
[AROS.git] / arch / arm-all / kernel / cpu_init.c
blobad97663b4058d84563c244575ffad7bd33c49a19
1 #include <aros/symbolsets.h>
2 #include <exec/types.h>
4 #include "kernel_base.h"
6 /*
7 * The job of this function is to probe the CPU and set up kb_ContextFlags
8 * and kb_ContextSize.
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
19 * a single FPU type.
21 KernelBase->kb_ContextFlags = ARM_FPU_TYPE;
22 KernelBase->kb_ContextSize = sizeof(struct AROSCPUContext) + ARM_FPU_SIZE;
24 return TRUE;
27 ADD2INITLIB(cpu_Init, 5);