diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 08:58:23 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 09:09:13 +0300 |
commit | 84df181c84921c4411eac7debce94316eb4a1132 (patch) | |
tree | cb570ef89952b8bf52af4d210db11033a0c7d884 /lib | |
parent | 8f91d1142e241d3319cdafd9810928870bc71970 (diff) | |
download | opensbi-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.c | 15 |
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); |