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

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Jonathan Neuschfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/16263
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>

Change-Id: I273e9d20e02f0333f28e0fc2adcc7940578ea93e
Reviewed-on: https://chromium-review.googlesource.com/374465
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
Jonathan Neuschäfer 2016-08-22 19:37:16 +02:00 committed by chrome-bot
commit 572f1844f2

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();