-
Notifications
You must be signed in to change notification settings - Fork 4
quit
Richard Nusser edited this page Jan 8, 2018
·
1 revision
This application will halt the UEFI environment.
If you're running this in a virtual machine the results vary:
- QEMU by default exits (QEMU can be configured otherwise though)
- a VirtualBox VM stops but the VM's window remains open
This is a very simple example of how to call arbitrary UEFI services. In this case it's the runtime service's
ResetSystem() functon: the global system table gST
provided by MdePkg's Library/UefiBootServicesTableLib.h
provides
access to the RuntimeServices
list.
Sources are in apps/quit.c.