stos: Add BPAL groundwork

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 02:08:45 +00:00
parent e42ea2e6a6
commit 4b1c00ba43
4 changed files with 78 additions and 2 deletions
+33
View File
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Boot protocol abstraction layer
* Author: Chloe M.
*/
#include <ke/bpal.h>
#include <stdef.h>
#include <string.h>
#ifndef _BOOT_PROTO
#error "Boot protocol must be defined"
#else
#define BOOT_PROTO _BOOT_PROTO
#endif /* !_BOOT_PROTO */
VOID
KeBpalInit(VOID)
{
const CHAR *BootProto = BOOT_PROTO;
switch (*BootProto) {
case 'l':
if (RtlMemCmp(BootProto, "limine", 6) == 0) {
KeBpalLimineInit();
return;
}
}
/* TODO: PANIC HERE */
}