Add XTLDR protocol support
Some checks failed
Builds / ExectOS (amd64) (push) Failing after 15s
Builds / ExectOS (i686) (push) Failing after 15s

This commit is contained in:
2023-12-04 18:49:34 +01:00
parent aea69a33b9
commit 02cd8efde9
4 changed files with 90 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ list(APPEND XTLDR_SOURCE
${XTLDR_SOURCE_DIR}/globals.c
${XTLDR_SOURCE_DIR}/hardware.c
${XTLDR_SOURCE_DIR}/memory.c
${XTLDR_SOURCE_DIR}/protocol.c
${XTLDR_SOURCE_DIR}/string.c
${XTLDR_SOURCE_DIR}/xtldr.c)

View File

@@ -44,6 +44,34 @@ BlExitBootServices(IN UINT_PTR MapKey)
return Status;
}
/**
* Returns the EFI image handle.
*
* @return This routine returns the current EFI image handle.
*
* @since XT 1.0
*/
XTCDECL
EFI_HANDLE
BlGetEfiImageHandle()
{
return BlpStatus.ImageHandle;
}
/**
* Returns the EFI system table.
*
* @return This routine returns the current EFI system table.
*
* @since XT 1.0
*/
XTCDECL
PEFI_SYSTEM_TABLE
BlGetEfiSystemTable()
{
return BlpStatus.SystemTable;
}
/**
* Puts the system to sleep for the specified number of milliseconds.
*

View File

@@ -52,6 +52,14 @@ VOID
BlDebugPrint(IN PUINT16 Format,
IN ...);
XTCDECL
EFI_HANDLE
BlGetEfiImageHandle();
XTCDECL
PEFI_SYSTEM_TABLE
BlGetEfiSystemTable();
XTCDECL
EFI_STATUS
BlMemoryFreePages(IN UINT64 Pages,