From cb6c333200bd5d1dbeeb2971a8f378ee5123deea Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 9 Apr 2022 15:21:52 +0100 Subject: [PATCH] sigh use MEMORY_BASE which is at 0x0000_0000 and coincides with DRAM_BASE --- coldboot/coldboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 777695c..020d9dc 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -158,7 +158,7 @@ int main(void) { int res, failcnt = 0; uint32_t tmp; unsigned long ftr, spi_offs=0x0; - volatile uint32_t *ram = (uint32_t*)DRAM_BASE; + volatile uint32_t *ram = (uint32_t*)MEMORY_BASE; console_init(); //puts("Firmware launched...\n"); @@ -293,7 +293,7 @@ for (i=0;i<1000;i++) { }; #endif struct gramProfile profile2; - gram_init(&ctx, &profile, (void*)DRAM_BASE, + gram_init(&ctx, &profile, (void*)MEMORY_BASE, (void*)DRAM_CTRL_BASE, (void*)DRAM_INIT_BASE); puts("done\n"); -- 2.30.2