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>
This commit is contained in:
parent
4af2add608
commit
c438bcd590
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue