stos: bpal: Initialize BPAL handle

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 02:25:27 +00:00
parent f546599d18
commit bb6e4d98d1
3 changed files with 32 additions and 3 deletions
+11 -1
View File
@@ -13,6 +13,13 @@
#define DTRACE(Fmt, ...) \
TRACE("[ BPAL ]: " Fmt, ##__VA_ARGS__)
/* HHDM request */
static struct limine_hhdm_response *HHDMResp = NULL;
static volatile struct limine_hhdm_request HHDMReq = {
.id = LIMINE_HHDM_REQUEST_ID,
.revision = 0
};
/* Bootloader information */
static struct limine_bootloader_info_response *LoaderInfoResp = NULL;
static volatile struct limine_bootloader_info_request LoaderInfoReq = {
@@ -28,10 +35,11 @@ static struct limine_bootloader_performance_request LoaderPerReq = {
};
VOID
KeBpalLimineInit(VOID)
KeBpalLimineInit(BPAL_HANDLE *Handle)
{
LoaderInfoResp = LoaderInfoReq.response;
LoaderPerfResp = LoaderPerReq.response;
HHDMResp = HHDMReq.response;
DTRACE(
"slut handed control by %s %s\n",
@@ -48,4 +56,6 @@ KeBpalLimineInit(VOID)
"handoff took %d usec\n",
LoaderPerfResp->exec_usec
);
Handle->KernelBase = HHDMResp->offset;
}