Patrick Rudolph has uploaded a new patch set (#11) to the change originally created by Patrick Rudolph. ( https://review.coreboot.org/c/coreboot/+/30119 )
Change subject: arch/x86/mmu: Port armv8 MMU to x86_64 ......................................................................
arch/x86/mmu: Port armv8 MMU to x86_64
Add functions to set up page tables for long mode. Required to support x86_64, as the MMU is always active.
I didn't touch pae/pgtbl.c for the following reasons:
* arch/x86/mmu.c generates long mode page tables, while pgtbl.c operates on 32bit/PAE page tables * arch/x86/mmu.c generates dynamic page tables, while pgtbl.c has static tables read from cbfs * arch/x86/mmu.c is intended for RAM environments, while pgtbl.c is for PRERAM environments * arch/x86/mmu.c is designed like the other arch/*/mmu.c
Tested on qemu. Doesn't affect existing x86_32 code.
Change-Id: I6e8b46e65925823a84b8ccd647c7d6848aa20992 Signed-off-by: Patrick Rudolph siro@das-labor.org --- M Documentation/arch/x86/index.md M src/arch/x86/Kconfig A src/arch/x86/include/arch/mmu.h A src/arch/x86/mmu.c M src/commonlib/include/commonlib/cbmem_id.h 5 files changed, 497 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/30119/11