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