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>
This commit is contained in:
Patrick Rudolph 2020-07-01 20:11:20 +02:00
parent e414ce4532
commit 34a5a9b3e6
1 changed files with 2 additions and 2 deletions

View File

@ -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)