bios/main: fix spiflash compilation warnings

This commit is contained in:
Florent Kermarrec 2019-06-28 22:18:24 +02:00
parent 2da59b29e2
commit 9f3c8a9b8a
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@
#include <net/microudp.h>
#endif
#ifdef FLASH_BOOT_ADDRESS
#ifdef CSR_SPIFLASH_BASE
#include <spiflash.h>
#endif
@ -140,6 +140,7 @@ static void mw(char *addr, char *value, char *count)
for (i=0;i<count2;i++) *addr2++ = value2;
}
#ifdef CSR_SPIFLASH_BASE
static void fw(char *addr, char *value, char *count)
{
char *c;
@ -173,6 +174,7 @@ static void fw(char *addr, char *value, char *count)
}
for (i=0;i<count2;i++) write_to_flash(addr2, (unsigned char *)&value2, 4);
}
#endif
static void mc(char *dstaddr, char *srcaddr, char *count)
{