diff options
Diffstat (limited to 'poweroff.c')
-rw-r--r-- | poweroff.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/poweroff.c b/poweroff.c new file mode 100644 index 000000000000..2230d27b089d --- /dev/null +++ b/poweroff.c @@ -0,0 +1,10 @@ +#include <efi.h> +#include <efilib.h> + +EFI_STATUS +EFIAPI +efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { + InitializeLib(ImageHandle, SystemTable); + return uefi_call_wrapper(SystemTable->RuntimeServices->ResetSystem, 4, + EfiResetShutdown, EFI_SUCCESS, sizeof(NULL), NULL); +} |