set RAM base to #defined DRAM_BASE not hard-coded value
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 20 Feb 2022 13:54:03 +0000 (13:54 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 20 Feb 2022 13:54:03 +0000 (13:54 +0000)
coldboot/coldboot.c

index 8eba6a108c7edaf0d53ff8efb95b675b04596f82..2aec9f221604293e02ed1a4daf62c45e81f8b803 100644 (file)
@@ -61,7 +61,7 @@ int main(void) {
        const int kNumIterations = 65536;
        int res, failcnt = 0;
        uint32_t tmp;
-       volatile uint32_t *ram = 0x10000000;
+       volatile uint32_t *ram = DRAM_BASE;
        console_init();
        puts("Firmware launched...\n");