summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2016-08-22 19:37:16 +0200
committerRonald G. Minnich <rminnich@gmail.com>2016-08-23 23:47:28 +0200
commitcafb10c67257f4845280a7a1c995a0a1965e490d (patch)
tree1cc7076340a0e158c909575ee301a8183e18da9a
parent857e33e27f1feeec328ae8be5ad61ee51b75e4ec (diff)
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>
-rw-r--r--src/arch/riscv/virtual_memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c
index 74b382527b..be8b4884d4 100644
--- a/src/arch/riscv/virtual_memory.c
+++ b/src/arch/riscv/virtual_memory.c
@@ -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();