xref: /netbsd-src/sys/external/bsd/gnu-efi/dist/lib/exit.c (revision 865c57e0098351fba0d2d2a97b33e7e0270e62c6)
1 /*	$NetBSD: exit.c,v 1.1.1.1 2018/08/16 18:17:47 jmcneill Exp $	*/
2 
3 #include "lib.h"
4 
5 VOID
6 Exit(
7     IN EFI_STATUS   ExitStatus,
8     IN UINTN        ExitDataSize,
9     IN CHAR16       *ExitData OPTIONAL
10     )
11 {
12     uefi_call_wrapper(BS->Exit,
13             4,
14             LibImageHandle,
15             ExitStatus,
16             ExitDataSize,
17             ExitData);
18 
19     // Uh oh, Exit() returned?!
20     for (;;) { }
21 }
22