Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bios: fix function prototypes

  • Loading branch information...
commit 1e4e092a5590677ecf35750b97f81db8ddf4bcf7 1 parent 026457a
Sébastien Bourdeauducq authored February 18, 2012

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  software/bios/main.c
8  software/bios/main.c
@@ -300,7 +300,7 @@ static void wcsr(char *csr, char *value)
300 300
 
301 301
 /* Init + command line */
302 302
 
303  
-static void help()
  303
+static void help(void)
304 304
 {
305 305
 	puts("Milkymist(tm) BIOS");
306 306
 	puts("Don't know what to do? Try 'flashboot'.\n");
@@ -351,6 +351,8 @@ static void do_command(char *c)
351 351
 
352 352
 	else if(strcmp(token, "rcsr") == 0) rcsr(get_token(&c));
353 353
 	else if(strcmp(token, "wcsr") == 0) wcsr(get_token(&c), get_token(&c));
  354
+	
  355
+	else if(strcmp(token, "ddrinit") == 0) ddrinit();
354 356
 
355 357
 	else if(strcmp(token, "") != 0)
356 358
 		printf("Command not found\n");
@@ -359,7 +361,7 @@ static void do_command(char *c)
359 361
 int rescue;
360 362
 extern unsigned int _edata;
361 363
 
362  
-static void crcbios()
  364
+static void crcbios(void)
363 365
 {
364 366
 	unsigned int offset_bios;
365 367
 	unsigned int length;
@@ -384,7 +386,7 @@ static void crcbios()
384 386
 	}
385 387
 }
386 388
 
387  
-static void print_mac()
  389
+static void print_mac(void)
388 390
 {
389 391
 	unsigned char *macadr = (unsigned char *)FLASH_OFFSET_MAC_ADDRESS;
390 392
 

0 notes on commit 1e4e092

Please sign in to comment.
Something went wrong with that request. Please try again.