sp1: os: Print boot banner on startup

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-04-16 22:34:25 -04:00
parent 16cb06e48e
commit 56a793c39b
+12
View File
@@ -12,15 +12,27 @@
#include <io/cons/cons.h> #include <io/cons/cons.h>
#include <lib/printf.h> #include <lib/printf.h>
#define KERNEL_VERSION "0.0.1"
/* Root console attribute */ /* Root console attribute */
struct cons_attr cons_attr = { struct cons_attr cons_attr = {
.fg = 0x808080, .fg = 0x808080,
.bg = 0x000000 .bg = 0x000000
}; };
static void
boot_banner(void)
{
printf("-- sp1/amd64 %s --\n", KERNEL_VERSION);
printf("yiff!~ preparing syspaw for you!... <3\n");
}
void void
main(void) main(void)
{ {
/* Initialize the console */ /* Initialize the console */
cons_init(&cons_attr); cons_init(&cons_attr);
/* Write the boot console */
boot_banner();
} }