arch/riscv: Map the kernel space into RAM (2GiB+)

Change-Id: I273e9d20e02f0333f28e0fc2adcc7940578ea93e
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/16263
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Jonathan Neuschäfer 2016-08-22 19:37:16 +02:00 committed by Ronald G. Minnich
parent 857e33e27f
commit cafb10c672
1 changed files with 3 additions and 3 deletions

View File

@ -186,9 +186,9 @@ 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 = 0x1400000;
uintptr_t physicalStart = 0x90000000; // TODO: Figure out how to grab this from cbfs
uintptr_t virtualStart = 0xffffffff80000000;
uintptr_t pageTableStart = 0x91400000;
init_vm(virtualStart, physicalStart, pageTableStart);
mb();