summaryrefslogtreecommitdiff
path: root/src/drivers/pc80
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2020-07-01 20:07:08 +0200
committerPatrick Rudolph <siro@das-labor.org>2020-07-05 08:52:56 +0000
commit56fdafbaff33aee9f016ff04e0d69f5477729039 (patch)
tree8e3692f7e3d6e12b6afe69775cc0b8254f103c27 /src/drivers/pc80
parent34a5a9b3e623337754787dea9e7677b05109cb93 (diff)
downloadcoreboot-56fdafbaff33aee9f016ff04e0d69f5477729039.tar.xz
drivers/pc80/tpm/tis: Add x86_64 support
Fix integer with different size to pointer conversion on x86_64. Change-Id: Ic06a32d549b694310f4c724246f28fed15acf83f Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42983 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Christian Walter <christian.walter@9elements.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/pc80')
-rw-r--r--src/drivers/pc80/tpm/tis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/pc80/tpm/tis.c b/src/drivers/pc80/tpm/tis.c
index e18f9aff0e..4fbb09eba4 100644
--- a/src/drivers/pc80/tpm/tis.c
+++ b/src/drivers/pc80/tpm/tis.c
@@ -44,7 +44,7 @@
/* the macro accepts the locality value, but only locality 0 is operational */
#define TIS_REG(LOCALITY, REG) \
- (void *)(CONFIG_TPM_TIS_BASE_ADDRESS + (LOCALITY << 12) + REG)
+ (void *)(uintptr_t)(CONFIG_TPM_TIS_BASE_ADDRESS + (LOCALITY << 12) + REG)
/* hardware registers' offsets */
#define TIS_REG_ACCESS 0x0