Implement BmPrint() routine
This commit is contained in:
parent
6ba0557392
commit
f161b37faf
@ -73,6 +73,36 @@ BmInitializeConsole()
|
|||||||
BmEnableCursor();
|
BmEnableCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This routine formats the input string and prints it out to the stdout and serial console.
|
||||||
|
*
|
||||||
|
* @param Format
|
||||||
|
* The formatted string that is to be written to the output.
|
||||||
|
*
|
||||||
|
* @param ...
|
||||||
|
* Depending on the format string, this routine might expect a sequence of additional arguments.
|
||||||
|
*
|
||||||
|
* @return This routine does not return any value.
|
||||||
|
*
|
||||||
|
* @since XT 1.0
|
||||||
|
*/
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
BmPrint(IN PUINT16 Format,
|
||||||
|
IN ...)
|
||||||
|
{
|
||||||
|
VA_LIST Arguments;
|
||||||
|
|
||||||
|
/* Initialise the va_list */
|
||||||
|
VA_START(Arguments, Format);
|
||||||
|
|
||||||
|
/* Format and print the string to the stdout */
|
||||||
|
BmPrintString(BmPrintChar, Format, Arguments);
|
||||||
|
|
||||||
|
/* Clean up the va_list */
|
||||||
|
VA_END(Arguments);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes a character to the default EFI console.
|
* Writes a character to the default EFI console.
|
||||||
*
|
*
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
/* XT Boot Loader hex table */
|
/* XT Boot Loader hex table */
|
||||||
STATIC PUINT16 BmpHexTable = L"0123456789ABCDEF";
|
STATIC PUINT16 BmpHexTable = L"0123456789ABCDEF";
|
||||||
|
|
||||||
|
/* Serial port configuration */
|
||||||
|
CPPORT BmpSerialPort;
|
||||||
|
|
||||||
/* EFI Image Handle */
|
/* EFI Image Handle */
|
||||||
EFI_HANDLE EfiImageHandle;
|
EFI_HANDLE EfiImageHandle;
|
||||||
|
|
||||||
|
@ -32,6 +32,11 @@ XTCDECL
|
|||||||
VOID
|
VOID
|
||||||
BmInitializeConsole();
|
BmInitializeConsole();
|
||||||
|
|
||||||
|
XTCDECL
|
||||||
|
VOID
|
||||||
|
BmPrint(IN PUINT16 Format,
|
||||||
|
IN ...);
|
||||||
|
|
||||||
XTCDECL
|
XTCDECL
|
||||||
VOID
|
VOID
|
||||||
BmPrintChar(IN USHORT Character);
|
BmPrintChar(IN USHORT Character);
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
/* XT Boot Loader hex table */
|
/* XT Boot Loader hex table */
|
||||||
EXTERN PUINT16 BmpHexTable;
|
EXTERN PUINT16 BmpHexTable;
|
||||||
|
|
||||||
|
/* Serial port configuration */
|
||||||
|
EXTERN CPPORT BmpSerialPort;
|
||||||
|
|
||||||
/* EFI Image Handle */
|
/* EFI Image Handle */
|
||||||
EXTERN EFI_HANDLE EfiImageHandle;
|
EXTERN EFI_HANDLE EfiImageHandle;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user