Skip to content
Richard Nusser edited this page Jan 8, 2018 · 1 revision

Features

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

Technical Details

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.

Clone this wiki locally