Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29876
Change subject: cpu/x86/pae: Fix pointer casts ......................................................................
cpu/x86/pae: Fix pointer casts
Required to compile the code in x86_64, even though it's never used.
Change-Id: I2be8ad8805804e4da52bdb02ab43cb833402f999 --- M src/cpu/x86/pae/pgtbl.c 1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/29876/1
diff --git a/src/cpu/x86/pae/pgtbl.c b/src/cpu/x86/pae/pgtbl.c index 728135d..2cc9ba6 100644 --- a/src/cpu/x86/pae/pgtbl.c +++ b/src/cpu/x86/pae/pgtbl.c @@ -135,10 +135,10 @@ 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++) {