Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bios: fix function prototypes

  • Loading branch information...
commit 1e4e092a5590677ecf35750b97f81db8ddf4bcf7 1 parent 026457a
@sbourdeauducq sbourdeauducq authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 software/bios/main.c
View
8 software/bios/main.c
@@ -300,7 +300,7 @@ static void wcsr(char *csr, char *value)
/* Init + command line */
-static void help()
+static void help(void)
{
puts("Milkymist(tm) BIOS");
puts("Don't know what to do? Try 'flashboot'.\n");
@@ -351,6 +351,8 @@ static void do_command(char *c)
else if(strcmp(token, "rcsr") == 0) rcsr(get_token(&c));
else if(strcmp(token, "wcsr") == 0) wcsr(get_token(&c), get_token(&c));
+
+ else if(strcmp(token, "ddrinit") == 0) ddrinit();
else if(strcmp(token, "") != 0)
printf("Command not found\n");
@@ -359,7 +361,7 @@ static void do_command(char *c)
int rescue;
extern unsigned int _edata;
-static void crcbios()
+static void crcbios(void)
{
unsigned int offset_bios;
unsigned int length;
@@ -384,7 +386,7 @@ static void crcbios()
}
}
-static void print_mac()
+static void print_mac(void)
{
unsigned char *macadr = (unsigned char *)FLASH_OFFSET_MAC_ADDRESS;
Please sign in to comment.
Something went wrong with that request. Please try again.