uart buffer flush during reboot in osloader

This commit is contained in:
Kok Tong Ong 2019-11-02 18:44:57 +08:00 committed by Maurice Ma
parent cffc6cdfe1
commit 442a3efccc
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,7 @@ Shell (
UINTN Index, Index1;
SHELL Shell;
CONST SHELL_COMMAND **Iter;
UINT8 Buffer;
InitializeListHead (&mShellCommandEntryList);
@ -124,6 +125,9 @@ Shell (
if (Timeout != 0) {
ShellPrint (L"\n");
while (ConsolePoll ()) {
ConsoleRead (&Buffer, 1);
}
for (Index = Timeout; Index > 0; Index--) {
ShellPrint (L"Press any key within %d second(s) to enter the command shell", Index);
for (Index1 = 0; Index1 < 10; Index1++) {