From: Luke Kenneth Casson Leighton Date: Sat, 9 Apr 2022 14:21:52 +0000 (+0100) Subject: sigh use MEMORY_BASE which is at 0x0000_0000 and coincides with DRAM_BASE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb6c333200bd5d1dbeeb2971a8f378ee5123deea;p=ls2.git sigh use MEMORY_BASE which is at 0x0000_0000 and coincides with DRAM_BASE --- 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");