bios: Print CPU architecture on boot.

This commit is contained in:
Tim 'mithro' Ansell 2016-04-19 15:13:42 +10:00
parent e0e56e3655
commit 8998ae5c92

View file

@ -548,6 +548,16 @@ int main(int i, char **c)
"(c) Copyright 2012-2015 Enjoy-Digital\n" "(c) Copyright 2012-2015 Enjoy-Digital\n"
"(c) Copyright 2007-2015 M-Labs Limited\n" "(c) Copyright 2007-2015 M-Labs Limited\n"
"Built "__DATE__" "__TIME__"\n"); "Built "__DATE__" "__TIME__"\n");
#ifdef __lm32__
printf("Running on lm32.\n");
#elif __or1k__
printf("Running on or1k.\n");
#elif __riscv__
printf("Running on riscv.\n");
#else
printf("Running on unknown architecture.\n");
#endif
crcbios(); crcbios();
#ifdef CSR_ETHMAC_BASE #ifdef CSR_ETHMAC_BASE
eth_init(); eth_init();