summaryrefslogtreecommitdiff
path: root/src/arch/x86/lib/ebda.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-18 01:23:48 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-13 21:04:36 +0200
commit9693885ad88d21ead7bd9ebc32f3e4901841b18b (patch)
treece6fed36947956e17303cf7cbe9cfd2004022b10 /src/arch/x86/lib/ebda.c
parent492a07593b3d74d4b10fce95e5229cbd4535b1cb (diff)
downloadcoreboot-9693885ad88d21ead7bd9ebc32f3e4901841b18b.tar.xz
x86: Port x86 over to compile cleanly with x86-64
Change-Id: I26f1bbf027435be593f11bce4780111dcaf7cb86 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Signed-off-by: Scott Duplichan <scott@notabs.org> Reviewed-on: http://review.coreboot.org/10586 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/arch/x86/lib/ebda.c')
-rw-r--r--src/arch/x86/lib/ebda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/lib/ebda.c b/src/arch/x86/lib/ebda.c
index 6089578b96..47dfbdb1e9 100644
--- a/src/arch/x86/lib/ebda.c
+++ b/src/arch/x86/lib/ebda.c
@@ -40,8 +40,8 @@ void setup_ebda(u32 low_memory_size, u16 ebda_segment, u16 ebda_size)
write16(X86_EBDA_SEGMENT, ebda_segment);
/* Set up EBDA */
- memset((void *)(ebda_segment << 4), 0, ebda_size);
- write16((void*)(ebda_segment << 4), (ebda_size >> 10));
+ memset((void *)((uintptr_t)ebda_segment << 4), 0, ebda_size);
+ write16((void*)((uintptr_t)ebda_segment << 4), (ebda_size >> 10));
}
void setup_default_ebda(void)