ptos: bpal: Add helper to get kernel load base

Signed-off-by: Chloe M <chloe@yiffware.org>
This commit is contained in:
2026-07-10 19:05:23 -04:00
parent 27b9d726ff
commit 1c5e14f250
+12
View File
@@ -86,4 +86,16 @@ VOID KeBpalGetHandle(BPAL_HANDLE *Result);
/* Backend protocol init */
VOID KeBpalLimineInit(BPAL_HANDLE *Result);
/*
* Obtain the kernel load virtual memory base
*/
ALWAYS_INLINE static inline UPTR
KeBpalLoadBase(VOID)
{
BPAL_HANDLE Handle;
KeBpalGetHandle(&Handle);
return Handle.KernelBase;
}
#endif /* !_KE_BPAL_H_ */