diff options
author | Patrick Rudolph <siro@das-labor.org> | 2018-11-26 16:20:33 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-12-05 16:57:15 +0000 |
commit | c438bcd5906bc04573073c6b2d88027780405491 (patch) | |
tree | 2e5dc38efc4f030c02a0a11d1bd2f4f356b8049f | |
parent | 4af2add608eb0848f2c3105f0b29457b5b3ce138 (diff) |
cpu/x86/pae: Fix pointer casts
Required to compile the code in x86_64, even though it's never used.
Change-Id: I2be8ad8805804e4da52bdb02ab43cb833402f999
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/29876
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
-rw-r--r-- | src/cpu/x86/pae/pgtbl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cpu/x86/pae/pgtbl.c b/src/cpu/x86/pae/pgtbl.c index 728135dbd3..2cc9ba629f 100644 --- a/src/cpu/x86/pae/pgtbl.c +++ b/src/cpu/x86/pae/pgtbl.c @@ -135,10 +135,10 @@ void *map_2M_page(unsigned long page) memset(&pgtbl[index].pdp, 0, sizeof(pgtbl[index].pdp)); pd = pgtbl[index].pd; pdp = pgtbl[index].pdp; - pdp[0].addr_lo = ((uint32_t)&pd[512*0])|1; - pdp[1].addr_lo = ((uint32_t)&pd[512*1])|1; - pdp[2].addr_lo = ((uint32_t)&pd[512*2])|1; - pdp[3].addr_lo = ((uint32_t)&pd[512*3])|1; + pdp[0].addr_lo = ((uintptr_t)&pd[512*0])|1; + pdp[1].addr_lo = ((uintptr_t)&pd[512*1])|1; + pdp[2].addr_lo = ((uintptr_t)&pd[512*2])|1; + pdp[3].addr_lo = ((uintptr_t)&pd[512*3])|1; /* The first half of the page table is identity mapped */ for (i = 0; i < 1024; i++) { |