diff options
| author | Peter Jones <pjones@redhat.com> | 2017-02-14 11:54:59 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-03-27 14:16:42 -0400 |
| commit | d00ea5558eff006f244651b1593b4db2c8e85151 (patch) | |
| tree | 3c6bde79beff50e44f28cc4ceedf169018c58f59 /shim.c | |
| parent | 29f3c91d4eba095de8c737dc3badc6ea91b84c0f (diff) | |
| download | efi-boot-shim-d00ea5558eff006f244651b1593b4db2c8e85151.tar.gz efi-boot-shim-d00ea5558eff006f244651b1593b4db2c8e85151.zip | |
Fix some i386 type casting errors
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.c')
| -rw-r--r-- | shim.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1815,8 +1815,8 @@ EFI_STATUS start_image(EFI_HANDLE image_handle, CHAR16 *ImagePath) } /* Measure the binary into the TPM */ - tpm_log_event((EFI_PHYSICAL_ADDRESS)data, datasize, 9, - (CHAR8 *)"Second stage bootloader"); + tpm_log_event((EFI_PHYSICAL_ADDRESS)(UINTN)data, datasize, + 9, (CHAR8 *)"Second stage bootloader"); /* * We need to modify the loaded image protocol entry before running @@ -1901,8 +1901,8 @@ EFI_STATUS measure_mok() if (efi_status != EFI_SUCCESS) return efi_status; - efi_status = tpm_log_event((EFI_PHYSICAL_ADDRESS)Data, DataSize, 14, - (CHAR8 *)"MokList"); + efi_status = tpm_log_event((EFI_PHYSICAL_ADDRESS)(UINTN)Data, + DataSize, 14, (CHAR8 *)"MokList"); FreePool(Data); @@ -1915,8 +1915,8 @@ EFI_STATUS measure_mok() if (efi_status != EFI_SUCCESS) return efi_status; - efi_status = tpm_log_event((EFI_PHYSICAL_ADDRESS)Data, DataSize, 14, - (CHAR8 *)"MokSBState"); + efi_status = tpm_log_event((EFI_PHYSICAL_ADDRESS)(UINTN)Data, + DataSize, 14, (CHAR8 *)"MokSBState"); FreePool(Data); |
