From 3113968dd46fe41df9f949219ab8ac40d8c76b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 14 Jul 2016 20:24:25 +0200 Subject: [PATCH] UPSTREAM: arch/riscv: Move CBMEM into RAM CBMEM should be placed at the top of RAM, which can be found by parsing the configuration string. Configuration string parsing isn't yet implemented, so I'll hard-code the CBMEM location for now. BUG=None BRANCH=None TEST=None Change-Id: If4092d094a856f6783887c062d6682dd13a73b8f Original-Signed-off-by: Jonathan Neuschfer Original-Reviewed-on: https://review.coreboot.org/15284 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Ronald G. Minnich Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/360819 Reviewed-by: Duncan Laurie --- src/soc/ucb/riscv/cbmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/ucb/riscv/cbmem.c b/src/soc/ucb/riscv/cbmem.c index 3aabf19b56..0e0eec196b 100644 --- a/src/soc/ucb/riscv/cbmem.c +++ b/src/soc/ucb/riscv/cbmem.c @@ -16,5 +16,5 @@ void *cbmem_top(void) { // TODO: find out how RISCV stores this. - return (void *)0x1fff000; + return (void *)((uintptr_t)3*GiB); }