diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2016-07-07 20:53:29 +0200 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2016-07-14 18:23:15 +0200 |
commit | c98aac05890f65a17e87c50d6b1f3e662f59002e (patch) | |
tree | 9526d03a46d3336c085b8bdc56be70a07b587b9b /src | |
parent | 8660580567dc056881d690b542bcfa7947b96742 (diff) |
spike-riscv: Register RAM resource at 0x80000000
Without this patch, the CBFS loader won't load segments into the RAM.
Change-Id: If05c8edb51f9fe2f7af84178826f93b193cfd8a9
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/15511
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/emulation/spike-riscv/mainboard.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/emulation/spike-riscv/mainboard.c b/src/mainboard/emulation/spike-riscv/mainboard.c index 111e9b185b..df2bdd68d6 100644 --- a/src/mainboard/emulation/spike-riscv/mainboard.c +++ b/src/mainboard/emulation/spike-riscv/mainboard.c @@ -19,13 +19,21 @@ static void mainboard_enable(device_t dev) { + /* + * Size of the emulated system RAM. On hardware, this would be external + * DDR memory. + * + * TODO: Get this size from the hardware-supplied configuration string. + */ + const size_t ram_size = 1*GiB; if (!dev) { printk(BIOS_EMERG, "No dev0; die\n"); while (1); } - ram_resource(dev, 0, 2048, 32768); + ram_resource(dev, 0, 0x80000000/KiB, ram_size/KiB); + cbmem_recovery(0); } |