256499fe4c
Signed-off-by: Chloe M <chloe@yiffware.org>
52 lines
984 B
C
52 lines
984 B
C
/*
|
|
* Copyright (c) 2026, Chloe M., et al
|
|
* Provided under the BSD-3 clause.
|
|
*
|
|
* Description: System bringup core
|
|
* Author: Chloe M.
|
|
*/
|
|
|
|
#include <ptdef.h>
|
|
#include <ke/bpal.h>
|
|
#include <ex/trace.h>
|
|
#include <mm/pm.h>
|
|
#include <hal/serial.h>
|
|
#include <drivers/bootvid/fbio.h>
|
|
#include <string.h>
|
|
|
|
/*
|
|
* Display the copyright for legal reasons
|
|
*/
|
|
static VOID
|
|
Copyright(VOID)
|
|
{
|
|
TRACE("~ Plural Technology ~\n");
|
|
TRACE("Copyright (c) 2026, Chloe M., et al\n");
|
|
}
|
|
|
|
/*
|
|
* Starting here is where the world is brought up and system
|
|
* components are initialized.
|
|
*/
|
|
VOID
|
|
KiKernelInit(VOID)
|
|
{
|
|
/* Initialize the boot protocol abstraction layer */
|
|
KeBpalInit();
|
|
|
|
/* Initialize the serial driver */
|
|
HalSerialInit();
|
|
|
|
/* Display the copyright */
|
|
Copyright();
|
|
|
|
/* Initialize the boot video driver */
|
|
BootVidInit();
|
|
|
|
/* Initialize the boot video console */
|
|
BootVidInitCons(NULL);
|
|
|
|
/* Initialize physical memory */
|
|
MmPmInit();
|
|
}
|