diff options
Diffstat (limited to 'src/soc/sifive/fu540/cbmem.c')
-rw-r--r-- | src/soc/sifive/fu540/cbmem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/sifive/fu540/cbmem.c b/src/soc/sifive/fu540/cbmem.c index af0413038d..53e5fcf13b 100644 --- a/src/soc/sifive/fu540/cbmem.c +++ b/src/soc/sifive/fu540/cbmem.c @@ -6,8 +6,7 @@ #include <soc/sdram.h> #include <symbols.h> -void *cbmem_top_chipset(void) +uintptr_t cbmem_top_chipset(void) { - return (void *)MIN((uintptr_t)_dram + sdram_size_mb() * MiB, - FU540_MAXDRAM); + return MIN((uintptr_t)_dram + sdram_size_mb() * MiB, FU540_MAXDRAM); } |