Add a better boot message with version

This commit is contained in:
Justin C. Miller
2018-04-12 09:03:53 -07:00
parent 656d5dfedf
commit 712df97dfc
3 changed files with 10 additions and 13 deletions

View File

@@ -32,15 +32,10 @@ kernel_main(popcorn_data *header)
{
console cons = load_console(header);
const int times = 38;
char message[] = " 000 Hello, I am text rendered by the kernel! :-D\n";
for (int i = 0; i < times; ++i) {
cons.set_color(i, 0);
message[1] = '0' + ((i / 100) % 10);
message[2] = '0' + ((i / 10) % 10);
message[3] = '0' + (i % 10);
cons.puts(message);
}
cons.set_color(0x21, 0x00);
cons.puts("Popcorn OS ");
cons.set_color(0x08, 0x00);
cons.puts(GIT_VERSION " booting...\n");
do_the_set_registers(header);
}