summarylogtreecommitdiffstats
path: root/reboot.c
blob: 2bfd2531a07d18ce72c670766b3aaa71a1f04df1 (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, 
                             EfiResetCold, EFI_SUCCESS, sizeof(NULL), NULL);
}