1 #define __KERNEL_NOLIBBASE__
3 #include <aros/multiboot.h>
4 #include <aros/symbolsets.h>
7 #include <exec/lists.h>
8 #include <proto/exec.h>
12 #include "kernel_base.h"
13 #include "kernel_debug.h"
14 #include "kernel_intern.h"
23 static int Platform_Init(struct KernelBase
*LIBBASE
)
25 struct PlatformData
*pd
;
28 D(bug("[Kernel] Kernel_Init: Post-exec init. KernelBase @ %p\n", LIBBASE
));
30 for (i
= 0; i
< IRQ_COUNT
; i
++)
35 LIBBASE
->kb_Interrupts
[i
].lh_Type
= KBL_XTPIC
;
38 LIBBASE
->kb_Interrupts
[i
].lh_Type
= KBL_APIC
;
41 LIBBASE
->kb_Interrupts
[i
].lh_Type
= KBL_INTERNAL
;
46 D(bug("[Kernel] Kernel_Init: Interupt List initialised\n"));
48 pd
= AllocMem(sizeof(struct PlatformData
), MEMF_PUBLIC
|MEMF_CLEAR
);
52 LIBBASE
->kb_PlatformData
= pd
;
57 ADD2INITLIB(Platform_Init
, 10)