exit.c 342 B

12345678910111213141516171819
  1. #include "lib.h"
  2. VOID
  3. Exit(
  4. IN EFI_STATUS ExitStatus,
  5. IN UINTN ExitDataSize,
  6. IN CHAR16 *ExitData OPTIONAL
  7. )
  8. {
  9. uefi_call_wrapper(BS->Exit,
  10. 4,
  11. LibImageHandle,
  12. ExitStatus,
  13. ExitDataSize,
  14. ExitData);
  15. // Uh oh, Exit() returned?!
  16. for (;;) { }
  17. }