monitors/IntelGMA: Compiler delint
[AROS.git] / arch / arm-all / kernel / cpu_init.c
blobb79ab04bb8f0632236074c573f8a7ea3e7f2d025
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"
12 * The job of this function is to probe the CPU and set up kb_ContextFlags
13 * and kb_ContextSize.
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
24 * a single FPU type.
26 KernelBase->kb_ContextFlags = ARM_FPU_TYPE;
27 KernelBase->kb_ContextSize = sizeof(struct AROSCPUContext) + ARM_FPU_SIZE;
29 return TRUE;
32 ADD2INITLIB(cpu_Init, 5);