mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/bios: infer flash start from linker
This commit is contained in:
parent
07fc110fc1
commit
d4063409e1
1 changed files with 2 additions and 3 deletions
|
@ -9,7 +9,6 @@
|
|||
#include <crc.h>
|
||||
|
||||
#include <generated/csr.h>
|
||||
#include <hw/mem.h>
|
||||
#include <net/microudp.h>
|
||||
|
||||
#include "sdram.h"
|
||||
|
@ -374,7 +373,7 @@ static void do_command(char *c)
|
|||
printf("Command not found\n");
|
||||
}
|
||||
|
||||
extern unsigned int _edata;
|
||||
extern unsigned int _ftext, _edata;
|
||||
|
||||
static void crcbios(void)
|
||||
{
|
||||
|
@ -389,7 +388,7 @@ static void crcbios(void)
|
|||
* We also use the address of _edata to know the length
|
||||
* of our code.
|
||||
*/
|
||||
offset_bios = FLASH_OFFSET_BIOS;
|
||||
offset_bios = (unsigned int)&_ftext;
|
||||
expected_crc = _edata;
|
||||
length = (unsigned int)&_edata - offset_bios;
|
||||
actual_crc = crc32((unsigned char *)offset_bios, length);
|
||||
|
|
Loading…
Reference in a new issue