From 2434a018c43a387c731d581b5c8d3dbb45f23bdc Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Mon, 11 Dec 2023 17:45:19 +0100 Subject: [PATCH] Reorder routines --- xtldr2/console.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/xtldr2/console.c b/xtldr2/console.c index 6caf0bc..66b5ded 100644 --- a/xtldr2/console.c +++ b/xtldr2/console.c @@ -152,27 +152,6 @@ BlConsoleWrite(IN PUSHORT String) EfiSystemTable->ConOut->OutputString(EfiSystemTable->ConOut, String); } -/** - * This routine initializes the EFI console. - * - * @return This routine returns status code. - * - * @since XT 1.0 - */ -XTCDECL -VOID -BlpInitializeConsole() -{ - /* Clear console buffers */ - EfiSystemTable->ConIn->Reset(EfiSystemTable->ConIn, TRUE); - EfiSystemTable->ConOut->Reset(EfiSystemTable->ConOut, TRUE); - EfiSystemTable->StdErr->Reset(EfiSystemTable->StdErr, TRUE); - - /* Clear screen and enable cursor */ - BlConsoleClearScreen(); - BlConsoleEnableCursor(); -} - /** * Writes a character to the default EFI console. * @@ -194,3 +173,24 @@ BlpConsolePrintChar(IN USHORT Character) Buffer[1] = 0; EfiSystemTable->ConOut->OutputString(EfiSystemTable->ConOut, Buffer); } + +/** + * This routine initializes the EFI console. + * + * @return This routine returns status code. + * + * @since XT 1.0 + */ +XTCDECL +VOID +BlpInitializeConsole() +{ + /* Clear console buffers */ + EfiSystemTable->ConIn->Reset(EfiSystemTable->ConIn, TRUE); + EfiSystemTable->ConOut->Reset(EfiSystemTable->ConOut, TRUE); + EfiSystemTable->StdErr->Reset(EfiSystemTable->StdErr, TRUE); + + /* Clear screen and enable cursor */ + BlConsoleClearScreen(); + BlConsoleEnableCursor(); +}