From 56a793c39b206ba8e435f04850d1a7927fef68f3 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 16 Apr 2026 22:34:25 -0400 Subject: [PATCH] sp1: os: Print boot banner on startup Signed-off-by: Ian Moffett --- usr/src/sp1/common/os/main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/usr/src/sp1/common/os/main.c b/usr/src/sp1/common/os/main.c index 864833b..460dfe4 100644 --- a/usr/src/sp1/common/os/main.c +++ b/usr/src/sp1/common/os/main.c @@ -12,15 +12,27 @@ #include #include +#define KERNEL_VERSION "0.0.1" + /* Root console attribute */ struct cons_attr cons_attr = { .fg = 0x808080, .bg = 0x000000 }; +static void +boot_banner(void) +{ + printf("-- sp1/amd64 %s --\n", KERNEL_VERSION); + printf("yiff!~ preparing syspaw for you!... <3\n"); +} + void main(void) { /* Initialize the console */ cons_init(&cons_attr); + + /* Write the boot console */ + boot_banner(); }