bios/main: use edata instead of erodata
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 7 Aug 2018 07:02:09 +0000 (09:02 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 7 Aug 2018 07:02:09 +0000 (09:02 +0200)
litex/soc/software/bios/main.c

index 73613a0e40214a66d99ebca59cda408221339949..239920bdd44017d195a7286bf5721062cbd4fbd0 100644 (file)
@@ -413,7 +413,7 @@ static void do_command(char *c)
                printf("Command not found\n");
 }
 
-extern unsigned int _ftext, _erodata;
+extern unsigned int _ftext, _edata;
 
 static void crcbios(void)
 {
@@ -423,14 +423,14 @@ static void crcbios(void)
        unsigned int actual_crc;
 
        /*
-        * _erodata is located right after the end of the flat
+        * _edata is located right after the end of the flat
         * binary image. The CRC tool writes the 32-bit CRC here.
-        * We also use the address of _erodata to know the length
+        * We also use the address of _edata to know the length
         * of our code.
         */
        offset_bios = (unsigned int)&_ftext;
-       expected_crc = _erodata;
-       length = (unsigned int)&_erodata - offset_bios;
+       expected_crc = _edata;
+       length = (unsigned int)&_edata - offset_bios;
        actual_crc = crc32((unsigned char *)offset_bios, length);
        if(expected_crc == actual_crc)
                printf("BIOS CRC passed (%08x)\n", actual_crc);