ptos: ke: Add BPAL layer groundwork

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 05:09:53 +00:00
parent b2502c4ab1
commit d8d686352d
7 changed files with 121 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Boot protocol abstraction layer
* Author: Chloe M.
*/
#ifndef _KE_BPAL_H_
#define _KE_BPAL_H_ 1
#include <ptapi/status.h>
#include <ptdef.h>
/*
* Represents a handle for the boot protocol abstraction
* layer containing data filled in by the bootloader.
*
* @KernelBase: Represents the kernel load base
*/
typedef struct {
UPTR KernelBase;
} BPAL_HANDLE;
/*
* Initialize the boot protocol abstraction layer
*/
VOID KeBpalInit(VOID);
/*
* Obtain the BPAL handle
*
* @Result: Result is written here
*/
PT_STATUS KeBpalGetHandle(BPAL_HANDLE *Result);
/* Backend protocol init */
VOID KeBpalLimineInit(BPAL_HANDLE *Result);
#endif /* !_KE_BPAL_H_ */