stos: bpal: Initialize BPAL handle

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 02:25:27 +00:00
parent f546599d18
commit bb6e4d98d1
3 changed files with 32 additions and 3 deletions
+13 -1
View File
@@ -16,6 +16,18 @@
#define BOOT_PROTO _BOOT_PROTO
#endif /* !_BOOT_PROTO */
static BPAL_HANDLE BpalHandle;
VOID
KeBpalGetHandle(BPAL_HANDLE *Result)
{
if (Result == NULL) {
return;
}
*Result = BpalHandle;
}
VOID
KeBpalInit(VOID)
{
@@ -24,7 +36,7 @@ KeBpalInit(VOID)
switch (*BootProto) {
case 'l':
if (RtlMemCmp(BootProto, "limine", 6) == 0) {
KeBpalLimineInit();
KeBpalLimineInit(&BpalHandle);
return;
}
}