Skip to content

Commit 1e4e092

Browse files
author
Sebastien Bourdeauducq
committedFeb 18, 2012
bios: fix function prototypes
1 parent 026457a commit 1e4e092

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎software/bios/main.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static void wcsr(char *csr, char *value)
300300

301301
/* Init + command line */
302302

303-
static void help()
303+
static void help(void)
304304
{
305305
puts("Milkymist(tm) BIOS");
306306
puts("Don't know what to do? Try 'flashboot'.\n");
@@ -351,6 +351,8 @@ static void do_command(char *c)
351351

352352
else if(strcmp(token, "rcsr") == 0) rcsr(get_token(&c));
353353
else if(strcmp(token, "wcsr") == 0) wcsr(get_token(&c), get_token(&c));
354+
355+
else if(strcmp(token, "ddrinit") == 0) ddrinit();
354356

355357
else if(strcmp(token, "") != 0)
356358
printf("Command not found\n");
@@ -359,7 +361,7 @@ static void do_command(char *c)
359361
int rescue;
360362
extern unsigned int _edata;
361363

362-
static void crcbios()
364+
static void crcbios(void)
363365
{
364366
unsigned int offset_bios;
365367
unsigned int length;
@@ -384,7 +386,7 @@ static void crcbios()
384386
}
385387
}
386388

387-
static void print_mac()
389+
static void print_mac(void)
388390
{
389391
unsigned char *macadr = (unsigned char *)FLASH_OFFSET_MAC_ADDRESS;
390392

0 commit comments

Comments
 (0)
Please sign in to comment.