ptos: ke: Add BPAL layer groundwork
Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user