ptos: bpal: Obtain ACPI RSDP pointer
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user