[coreboot-gerrit] Patch set updated for coreboot: riscv-virtual-memory: move page tables into virtual address space
Thaminda Edirisooriya (thaminda@google.com)
gerrit at coreboot.org
Mon Sep 14 16:06:52 CET 2015
Thaminda Edirisooriya (thaminda at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11621
-gerrit
commit 6ebf1df7f7c44f38fb53c0754c4b4ff0145fca93
Author: Thaminda Edirisooriya <thaminda at google.com>
Date: Thu Sep 10 10:58:58 2015 -0700
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 at google.com>
---
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 2095bfa..0163a45 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");
More information about the coreboot-gerrit
mailing list