xref: /DragonStub/lib/pause.c (revision 7cc4f3a20c1439556703796438f226e572bd5ec1)
1*7cc4f3a2SKagurazaka Kotori #include "lib.h"
2*7cc4f3a2SKagurazaka Kotori 
3*7cc4f3a2SKagurazaka Kotori VOID
Pause(VOID)4*7cc4f3a2SKagurazaka Kotori Pause(
5*7cc4f3a2SKagurazaka Kotori     VOID
6*7cc4f3a2SKagurazaka Kotori )
7*7cc4f3a2SKagurazaka Kotori // Pause until any key is pressed
8*7cc4f3a2SKagurazaka Kotori {
9*7cc4f3a2SKagurazaka Kotori     EFI_INPUT_KEY Key;
10*7cc4f3a2SKagurazaka Kotori     EFI_STATUS    Status EFI_UNUSED;
11*7cc4f3a2SKagurazaka Kotori 
12*7cc4f3a2SKagurazaka Kotori     WaitForSingleEvent(ST->ConIn->WaitForKey, 0);
13*7cc4f3a2SKagurazaka Kotori     Status = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, &Key);
14*7cc4f3a2SKagurazaka Kotori     ASSERT(!EFI_ERROR(Status));
15*7cc4f3a2SKagurazaka Kotori }
16