From cafb10c67257f4845280a7a1c995a0a1965e490d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Mon, 22 Aug 2016 19:37:16 +0200 Subject: [PATCH] arch/riscv: Map the kernel space into RAM (2GiB+) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I273e9d20e02f0333f28e0fc2adcc7940578ea93e Signed-off-by: Jonathan Neuschäfer Reviewed-on: https://review.coreboot.org/16263 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/arch/riscv/virtual_memory.c | 6 +++--- 1 file 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();