Add a banner

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
Damien Le Moal 2018-12-21 14:58:23 +09:00
parent 8f91d1142e
commit 84df181c84

View file

@ -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);