projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e56e3
)
bios: Print CPU architecture on boot.
author
Tim 'mithro' Ansell
<mithro@mithis.com>
Tue, 19 Apr 2016 05:13:42 +0000
(15:13 +1000)
committer
Tim 'mithro' Ansell
<mithro@mithis.com>
Tue, 19 Apr 2016 06:02:26 +0000
(16:02 +1000)
litex/soc/software/bios/main.c
patch
|
blob
|
history
diff --git
a/litex/soc/software/bios/main.c
b/litex/soc/software/bios/main.c
index d45ec8674e67982a61b5d152c808bd425f702811..11147f4b739c61486a0268582ba2eef19e661da2 100644
(file)
--- a/
litex/soc/software/bios/main.c
+++ b/
litex/soc/software/bios/main.c
@@
-548,6
+548,16
@@
int main(int i, char **c)
"(c) Copyright 2012-2015 Enjoy-Digital\n"
"(c) Copyright 2007-2015 M-Labs Limited\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();
#ifdef CSR_ETHMAC_BASE
eth_init();