summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tpm.h2
-rw-r--r--tpm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tpm.h b/include/tpm.h
index d5245875..cab1939a 100644
--- a/include/tpm.h
+++ b/include/tpm.h
@@ -6,7 +6,6 @@
#include <efilib.h>
#define TPM_ALG_SHA 0x00000004
-#define EV_IPL 0x0000000d
EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr,
const CHAR8 *description);
@@ -176,6 +175,7 @@ typedef struct efi_tpm2_protocol efi_tpm2_protocol_t;
typedef UINT32 TCG_EVENTTYPE;
+#define EV_IPL 0x0000000d
#define EV_EFI_EVENT_BASE ((TCG_EVENTTYPE) 0x80000000)
#define EV_EFI_VARIABLE_DRIVER_CONFIG (EV_EFI_EVENT_BASE + 1)
#define EV_EFI_VARIABLE_BOOT (EV_EFI_EVENT_BASE + 2)
diff --git a/tpm.c b/tpm.c
index 4b9d0d92..e1fcb8be 100644
--- a/tpm.c
+++ b/tpm.c
@@ -209,7 +209,7 @@ EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr,
const CHAR8 *description)
{
return tpm_log_event_raw(buf, size, pcr, description,
- strlen(description) + 1, 0xd, NULL);
+ strlen(description) + 1, EV_IPL, NULL);
}
EFI_STATUS tpm_log_pe(EFI_PHYSICAL_ADDRESS buf, UINTN size,