summaryrefslogtreecommitdiff
path: root/arch/x86/lib/pirq_routing.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-01-16 07:03:42 -0700
committerBin Meng <bmeng.cn@gmail.com>2017-02-06 11:38:46 +0800
commit113e75592a8c9e3f49a2009fe4d5969ac3028bfd (patch)
tree073707b3489e9f90ed9c0610277ea30d5472ebce /arch/x86/lib/pirq_routing.c
parentbeb4d65e92ad091aefb1b5579ed839782ecb2008 (diff)
downloadu-boot-imx-113e75592a8c9e3f49a2009fe4d5969ac3028bfd.zip
u-boot-imx-113e75592a8c9e3f49a2009fe4d5969ac3028bfd.tar.gz
u-boot-imx-113e75592a8c9e3f49a2009fe4d5969ac3028bfd.tar.bz2
x86: lib: Fix types and casts for 64-bit compilation
Fix various compiler warnings in the x86 library code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/pirq_routing.c')
-rw-r--r--arch/x86/lib/pirq_routing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/pirq_routing.c b/arch/x86/lib/pirq_routing.c
index a93d355..c98526d 100644
--- a/arch/x86/lib/pirq_routing.c
+++ b/arch/x86/lib/pirq_routing.c
@@ -114,14 +114,14 @@ u32 copy_pirq_routing_table(u32 addr, struct irq_routing_table *rt)
addr = ALIGN(addr, 16);
debug("Copying Interrupt Routing Table to 0x%x\n", addr);
- memcpy((void *)addr, rt, rt->size);
+ memcpy((void *)(uintptr_t)addr, rt, rt->size);
/*
* We do the sanity check here against the copied table after memcpy,
* as something might go wrong after the memcpy, which is normally
* due to the F segment decode is not turned on to systeam RAM.
*/
- rom_rt = (struct irq_routing_table *)addr;
+ rom_rt = (struct irq_routing_table *)(uintptr_t)addr;
if (rom_rt->signature != PIRQ_SIGNATURE ||
rom_rt->version != PIRQ_VERSION || rom_rt->size % 16) {
printf("Interrupt Routing Table not valid\n");