d8d686352d
Signed-off-by: Chloe M. <chloe@yiffware.org>
29 lines
536 B
C
29 lines
536 B
C
/*
|
|
* 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;
|
|
}
|