stos: bpal: Initialize BPAL handle
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user