revert between 56095 -> 55830 in arch
[AROS.git] / rom / processor / init.c
blob15c6e7d55099454deb2fb6899e405ab998f5a54f
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/debug.h>
9 #include <aros/symbolsets.h>
11 #include <proto/exec.h>
12 #include <proto/kernel.h>
14 #include "processor_intern.h"
16 static LONG common_Init(struct ProcessorBase *ProcessorBase)
18 KernelBase = OpenResource("kernel.resource");
19 if (!KernelBase)
20 return FALSE;
22 ProcessorBase->cpucount = KrnGetCPUCount();
23 D(bug("[processor] System has %u CPUs\n", ProcessorBase->cpucount));
25 return TRUE;
28 ADD2INITLIB(common_Init, 0)