From 08c10a9cbceb21de260f277751d164d1c285f1c0 Mon Sep 17 00:00:00 2001 From: Thaminda Edirisooriya Date: Thu, 10 Sep 2015 10:58:58 -0700 Subject: [PATCH] riscv-virtual-memory: move page tables into virtual address space If we use a linux payload/any payload that wants to manage virtual memory, and the payload is a supervisor (thus requiring virtual addressing before being started), we need to make sure that the page table is mapped into the virtual address space. Move the start address of the tables so the payload can manage virtual memory. Change-Id: I1d99e46f38a38a163fb1c7c517b1abca80cde0dc Signed-off-by: Thaminda Edirisooriya Reviewed-on: http://review.coreboot.org/11621 Tested-by: build bot (Jenkins) --- src/arch/riscv/virtual_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c index 2095bfa440..0163a4596e 100644 --- a/src/arch/riscv/virtual_memory.c +++ b/src/arch/riscv/virtual_memory.c @@ -107,7 +107,7 @@ void initVirtualMemory(void) { printk(BIOS_DEBUG, "Initializing virtual memory...\n"); uintptr_t physicalStart = 0x1000000; // TODO: Figure out how to grab this from cbfs uintptr_t virtualStart = 0xffffffff81000000; - uintptr_t pageTableStart = 0x1f0000; + uintptr_t pageTableStart = 0x1400000; init_vm(virtualStart, physicalStart, pageTableStart); mb(); printk(BIOS_DEBUG, "Finished initializing virtual memory, starting walk...\n");