aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/lib/mpspec.c
diff options
context:
space:
mode:
authorSimon Glass2017-01-16 07:03:35 -0700
committerBin Meng2017-02-06 11:38:46 +0800
commit42fd8c19b58fe8f8fe7559ea53b1cef12fc06240 (patch)
treeb06a899ecdd9ec87f8415518e98ed14e08832431 /arch/x86/lib/mpspec.c
parent0ec28e026606fa579e9c8639f82843fb6a60337a (diff)
x86: Use unsigned long for address in table generation
We should use unsigned long rather than u32 for addresses. Update this so that the table-generation code builds correctly on 64-bit machines. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/mpspec.c')
-rw-r--r--arch/x86/lib/mpspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/mpspec.c b/arch/x86/lib/mpspec.c
index 6ab43f1055f..516d7b3452c 100644
--- a/arch/x86/lib/mpspec.c
+++ b/arch/x86/lib/mpspec.c
@@ -365,7 +365,7 @@ static void mptable_add_lintsrc(struct mp_config_table *mc, int bus_isa)
bus_isa, 0, MP_APIC_ALL, 1);
}
-u32 write_mp_table(u32 addr)
+ulong write_mp_table(ulong addr)
{
struct mp_config_table *mc;
int ioapic_id, ioapic_ver;