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 <j.neuschaefer@gmx.net>
Original-Reviewed-on: https://review.coreboot.org/15284
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/360819
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
This commit is contained in:
Jonathan Neuschäfer 2016-07-14 20:24:25 +02:00 committed by chrome-bot
commit 3113968dd4

View file

@ -16,5 +16,5 @@
void *cbmem_top(void)
{
// TODO: find out how RISCV stores this.
return (void *)0x1fff000;
return (void *)((uintptr_t)3*GiB);
}