summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/lowrisc/lowrisc/cbmem.c5
-rw-r--r--src/soc/ucb/riscv/cbmem.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/src/soc/lowrisc/lowrisc/cbmem.c b/src/soc/lowrisc/lowrisc/cbmem.c
index 44ffa26939..a21266608b 100644
--- a/src/soc/lowrisc/lowrisc/cbmem.c
+++ b/src/soc/lowrisc/lowrisc/cbmem.c
@@ -12,14 +12,15 @@
*/
#include <cbmem.h>
-#include <commonlib/configstring.h>
void *cbmem_top(void)
{
uintptr_t base;
size_t size;
- query_mem(configstring(), &base, &size);
+ /* FIXME: These values shouldn't necessarily be hardcoded */
+ base = 0x80000000;
+ size = 128 * MiB;
return (void *)(base + size);
}
diff --git a/src/soc/ucb/riscv/cbmem.c b/src/soc/ucb/riscv/cbmem.c
index 44ffa26939..f8f4098d75 100644
--- a/src/soc/ucb/riscv/cbmem.c
+++ b/src/soc/ucb/riscv/cbmem.c
@@ -19,7 +19,10 @@ void *cbmem_top(void)
uintptr_t base;
size_t size;
- query_mem(configstring(), &base, &size);
+ /* Use dummy values until we can query the memory size again */
+ //query_mem(configstring(), &base, &size);
+ base = 0x80000000;
+ size = 128 * MiB;
return (void *)(base + size);
}