ptos: bpal: Obtain ACPI RSDP pointer

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-13 22:15:50 -04:00
parent 823586180c
commit 3387461f61
2 changed files with 11 additions and 0 deletions
+9
View File
@@ -32,6 +32,13 @@ static volatile struct limine_memmap_request MapReq = {
.revision = 0
};
/* RSDP request */
static struct limine_rsdp_response *RsdpResp = NULL;
static volatile struct limine_rsdp_request RsdpReq = {
.id = LIMINE_RSDP_REQUEST_ID,
.revision = 0
};
static PT_STATUS
LimineMemEntryIdx(USIZE Idx, MEMMAP_ENTRY *Result)
{
@@ -80,8 +87,10 @@ KeBpalLimineInit(BPAL_HANDLE *Result)
HHDMResp = HHDMReq.response;
FbResp = FbReq.response;
MapResp = MapReq.response;
RsdpResp = RsdpReq.response;
Result->KernelBase = HHDMResp->offset;
Result->MemEntryIdx = LimineMemEntryIdx;
Result->RsdpBase = RsdpResp->address;
BpalInitFramebuffer(Result);
}