Skip to content

Commit

Permalink
bios: fix function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Feb 18, 2012
1 parent 026457a commit 1e4e092
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions software/bios/main.c
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand All @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit 1e4e092

Please sign in to comment.