ptos: ke: Add BPAL layer groundwork

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 05:09:53 +00:00
parent b2502c4ab1
commit d8d686352d
7 changed files with 121 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Limine backend
* Author: Chloe M.
*/
#include <ke/bpal.h>
#include <lib/limine.h>
/* HHDM request */
static struct limine_hhdm_response *HHDMResp = NULL;
static volatile struct limine_hhdm_request HHDMReq = {
.id = LIMINE_HHDM_REQUEST_ID,
.revision = 0
};
VOID
KeBpalLimineInit(BPAL_HANDLE *Result)
{
if (Result == NULL) {
return;
}
HHDMResp = HHDMReq.response;
Result->KernelBase = HHDMResp->offset;
}