stos/amd64: Impl phase 1 processor init
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <ke/stos.h>
|
||||
#include <ke/bpal.h>
|
||||
#include <hal/serial.h>
|
||||
#include <hal/kpcr.h>
|
||||
#include <drivers/bootvid/fbio.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <stdef.h>
|
||||
@@ -17,6 +18,9 @@
|
||||
#define DTRACE(Fmt, ...) \
|
||||
TRACE("[ INIT ]: " Fmt, ##__VA_ARGS__)
|
||||
|
||||
/* Globals */
|
||||
static KPCR BootstrapCore;
|
||||
|
||||
/*
|
||||
* Display a boot banner
|
||||
*/
|
||||
@@ -47,4 +51,7 @@ KiKernelEntry(VOID)
|
||||
|
||||
/* Initialize physical memory */
|
||||
MmInitPmm();
|
||||
|
||||
/* Phase 1 initialization the bootstrap core */
|
||||
HalKpcrP1Init(&BootstrapCore);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user