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)
This commit is contained in:
Thaminda Edirisooriya 2015-09-10 10:58:58 -07:00 committed by Ronald G. Minnich
parent a47738d10f
commit 08c10a9cbc
1 changed files with 1 additions and 1 deletions

View File

@ -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");