diff options
author | Patrick Rudolph <siro@das-labor.org> | 2020-07-01 20:11:20 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2020-07-05 08:52:33 +0000 |
commit | 34a5a9b3e623337754787dea9e7677b05109cb93 (patch) | |
tree | 39e9a480874aeab5b5be279533ac5cf844786bc8 | |
parent | e414ce45325d05dbdcc6b9b89b3703371a7d3411 (diff) | |
download | coreboot-34a5a9b3e623337754787dea9e7677b05109cb93.tar.xz |
include/cpu/x86/lapic: Add support for x86_64
Fix integer with different size to pointer conversion.
Change-Id: I9c13892b2d79be12cc6bf7bc0a5e3a39b64032a1
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42984
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/include/cpu/x86/lapic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/cpu/x86/lapic.h b/src/include/cpu/x86/lapic.h index 28978f2793..5ab57554f2 100644 --- a/src/include/cpu/x86/lapic.h +++ b/src/include/cpu/x86/lapic.h @@ -9,12 +9,12 @@ static __always_inline uint32_t lapic_read(unsigned int reg) { - return read32((volatile void *)(LAPIC_DEFAULT_BASE + reg)); + return read32((volatile void *)(uintptr_t)(LAPIC_DEFAULT_BASE + reg)); } static __always_inline void lapic_write(unsigned int reg, uint32_t v) { - write32((volatile void *)(LAPIC_DEFAULT_BASE + reg), v); + write32((volatile void *)(uintptr_t)(LAPIC_DEFAULT_BASE + reg), v); } static __always_inline void lapic_wait_icr_idle(void) |