diff options
| author | Peter Jones <pjones@redhat.com> | 2017-08-01 17:02:29 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-08-03 11:00:58 -0400 |
| commit | 2d82a3899bc0dcc4de65035d7b3b214b14b8ed6a (patch) | |
| tree | d93f3c0ddcbff77eeb4cfe84bbdc15d8fac4946b /tpm.c | |
| parent | bdc5d3ec9ca5e0f270dc583c86ef8916ee70ac39 (diff) | |
| download | efi-boot-shim-2d82a3899bc0dcc4de65035d7b3b214b14b8ed6a.tar.gz efi-boot-shim-2d82a3899bc0dcc4de65035d7b3b214b14b8ed6a.zip | |
Make tpm.c build right on 32-bit platforms.
EFI_PHYSICAL_ADDRESS is UINT64 everywhere, so you can't just copy a
32-bit pointer to it.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'tpm.c')
| -rw-r--r-- | tpm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,7 @@ #include <efi.h> #include <efilib.h> #include <string.h> +#include <stdint.h> #include "tpm.h" @@ -331,8 +332,8 @@ EFI_STATUS tpm_measure_variable(CHAR16 *VarName, EFI_GUID VendorGuid, UINTN VarS CopyMem ((CHAR16 *)VarLog->UnicodeName + VarNameLength, VarData, VarSize); - Status = tpm_log_event_raw((EFI_PHYSICAL_ADDRESS)VarLog, VarLogSize, 7, - (CHAR8 *)VarLog, VarLogSize, + Status = tpm_log_event_raw((EFI_PHYSICAL_ADDRESS)(intptr_t)VarLog, + VarLogSize, 7, (CHAR8 *)VarLog, VarLogSize, EV_EFI_VARIABLE_AUTHORITY, NULL); FreePool(VarLog); |
