Implement BlDbgPrint() for printing debug messages to the serial console and rename loader entry point
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
2022-08-09 22:27:15 +02:00
parent fa8fa99d6f
commit a961ac1e69
4 changed files with 85 additions and 8 deletions

View File

@@ -10,6 +10,7 @@
#define __XTLDR_XTBL_H
#include <xtkmapi.h>
#include <xtklib.h>
/* EFI Image Handle */
@@ -18,6 +19,12 @@ EXTERN EFI_HANDLE EfiImageHandle;
/* EFI System Table */
EXTERN EFI_SYSTEM_TABLE *EfiSystemTable;
/* Serial port configuration */
EXTERN CPPORT EfiSerialPort;
VOID
BlComPortPutChar(IN USHORT Character);
VOID
BlConsoleClearScreen();
@@ -27,10 +34,18 @@ BlConsoleInitialize();
VOID
BlConsolePutChar(IN USHORT Character);
VOID
BlDbgPrint(IN PUINT16 Format,
IN ...);
VOID
BlEfiPrint(IN PUINT16 Format,
IN ...);
EFI_STATUS
BlStartXtLoader(IN EFI_HANDLE ImageHandle,
IN PEFI_SYSTEM_TABLE SystemTable);
VOID
BlStringPrint(IN VOID PutChar(IN USHORT Character),
IN PUINT16 Format,
@@ -66,8 +81,4 @@ BlpStringPrintUnsigned64(IN VOID PutChar(IN USHORT Character),
UINT64
BlpStringReadPadding(IN PUINT16 *Format);
EFI_STATUS
XtLoaderStartup(IN EFI_HANDLE ImageHandle,
IN PEFI_SYSTEM_TABLE SystemTable);
#endif /* __XTLDR_XTBL_H */