revert between 56095 -> 55830 in arch
[AROS.git] / arch / arm-all / kernel / cpu_init.c
blobda066d81b1ca5da43a075f0f070252afc8b05f6b
1 /*
2 Copyright � 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
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
14 * and kb_ContextSize.
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
21 #ifndef ARM_FPU_TYPE
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
32 * a single FPU type.
34 KernelBase->kb_ContextFlags = ARM_FPU_TYPE;
35 KernelBase->kb_ContextSize = sizeof(struct AROSCPUContext) + ARM_FPU_SIZE;
37 return TRUE;
40 ADD2INITLIB(cpu_Init, 5);