summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThaminda Edirisooriya <thaminda@google.com>2015-09-10 10:58:58 -0700
committerRonald G. Minnich <rminnich@gmail.com>2015-09-16 17:17:28 +0000
commit08c10a9cbceb21de260f277751d164d1c285f1c0 (patch)
treee68c397328d0096254321f69fe58eac23952c8ca
parenta47738d10f9c6e4d14ffbd35a01c6e70c2c494e5 (diff)
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 <thaminda@google.com> Reviewed-on: http://review.coreboot.org/11621 Tested-by: build bot (Jenkins)
-rw-r--r--src/arch/riscv/virtual_memory.c2
1 files changed, 1 insertions, 1 deletions
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");