summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 08:58:23 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 09:09:13 +0300
commit84df181c84921c4411eac7debce94316eb4a1132 (patch)
treecb570ef89952b8bf52af4d210db11033a0c7d884 /lib
parent8f91d1142e241d3319cdafd9810928870bc71970 (diff)
downloadopensbi-84df181c84921c4411eac7debce94316eb4a1132.tar.xz
Add a banner
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi_init.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c
index 3e7bda3..72f2c19 100644
--- a/lib/sbi_init.c
+++ b/lib/sbi_init.c
@@ -17,6 +17,16 @@
#include <sbi/sbi_system.h>
#include <sbi/sbi_timer.h>
+static const char *logo =
+ " ____ _____ ____ _____\n"
+ " / __ \\ / ____| _ \\_ _|\n"
+ " | | | |_ __ ___ _ __ | (___ | |_) || |\n"
+ " | | | | '_ \\ / _ \\ '_ \\ \\___ \\| _ < | |\n"
+ " | |__| | |_) | __/ | | |____) | |_) || |_\n"
+ " \\____/| .__/ \\___|_| |_|_____/|____/_____|\n"
+ " | |\n"
+ " |_|\n";
+
static void __attribute__((noreturn)) init_coldboot(struct sbi_scratch *scratch,
u32 hartid)
{
@@ -76,7 +86,10 @@ static void __attribute__((noreturn)) init_coldboot(struct sbi_scratch *scratch,
sbi_printf("OpenSBI v%d.%d (%s %s)\n",
OPENSBI_MAJOR, OPENSBI_MINOR,
__DATE__, __TIME__);
- sbi_printf("\n");
+ sbi_printf("Running on Hart %u\n", hartid);
+
+ sbi_printf("%s\n", logo);
+
/* Platform details */
sbi_printf("Platform Name : %s\n", sbi_platform_name(plat));
sbi_printf("Platform HART Features : RV%d%s\n", misa_xlen(), str);