summarylogtreecommitdiffstats
path: root/poweroff.c
blob: 2230d27b089d47768864a4e25b68aed431f4af2c (plain)
1
2
3
4
5
6
7
8
9
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);
}