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 <ex/trace.h>
#include <lib/limine.h>
#define DTRACE(Fmt, ...) \
TRACE("[ BPAL ]: " Fmt, ##__VA_ARGS__)
/* Bootloader information */
static struct limine_bootloader_info_response *LoaderInfoResp = NULL;
static volatile struct limine_bootloader_info_request LoaderInfoReq = {
.id = LIMINE_BOOTLOADER_INFO_REQUEST_ID,
.revision = 0
};
VOID
KeBpalLimineInit(VOID)
{
LoaderInfoResp = LoaderInfoReq.response;
DTRACE(
"slut handed control by %s %s\n",
LoaderInfoResp->name,
LoaderInfoResp->version
);
}