File: clearpk.c

package info (click to toggle)
pesign 0.112-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 928 kB
  • sloc: ansic: 11,693; sh: 606; makefile: 209
file content (22 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#include <efi.h>
#include <efilib.h>

#include "sb.h"

EFI_STATUS
efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
{
	EFI_STATUS rc;

	InitializeLib(image, systab);

	rc = uefi_call_wrapper(systab->RuntimeServices->SetVariable, 5,
				EFI_PLATFORM_KEY_NAME,
				&EfiGlobalVariable,
				EFI_VARIABLE_NON_VOLATILE,
				0, NULL);
	Print(L"rc: 0x%x\n", (int)rc);
	return rc;
}