revert 213 commits (to 56092) from the last month. 10 still need work to resolve...
[AROS.git] / arch / x86_64-all / kernel / cpu_init.c
blob90544c7ad6895cb2d82475f14e4fb5224430ac8b
1 /*
2 Copyright © 1995-2017, 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_debug.h>
12 #define D(x)
14 static int cpu_Init(struct KernelBase *KernelBase)
16 /* All x86-64 processors have SSE */
17 D(bug("[Kernel] %s: KernelBase @ 0x%p\n", __func__, KernelBase);)
18 D(bug("[Kernel] %s: context size = %u + %u\n", __func__, AROS_ROUNDUP2(sizeof(struct AROSCPUContext), 16), sizeof(struct FPXContext));)
20 KernelBase->kb_ContextSize = AROS_ROUNDUP2(sizeof(struct AROSCPUContext), 16) + sizeof(struct FPXContext);
22 D(bug("[Kernel] %s: CPU Context size = %u bytes\n", __func__, KernelBase->kb_ContextSize);)
24 return TRUE;
27 ADD2INITLIB(cpu_Init, 5);