|
|
@ -1,10 +1,23 @@ |
|
|
|
#include "kernel.h" |
|
|
|
#include "kernel.h" |
|
|
|
|
|
|
|
|
|
|
|
char** eos_art = { |
|
|
|
void kernel_motd() { |
|
|
|
"\0" |
|
|
|
printalign(" ___ ____ ", BANNER_COLOR, MIDDLE); |
|
|
|
}; |
|
|
|
printalign(" ___ / _ \\/ ___| ", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign(" / _ \\ | | \\___ \\ ", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign("| __/ |_| |___) | A x86 operating system,", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign(" \\___|\\___/|____/ licenced under GPL-2.0", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
println(""); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printalign("Fun fact: e = lim[h->0] (1+h)^(1/h)", DEFAULT_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign("Created by Elias Almqvist", DEFAULT_COLOR, MIDDLE); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void kernel_init() { |
|
|
|
void kernel_init() { |
|
|
|
|
|
|
|
// Display a nice MOTD
|
|
|
|
|
|
|
|
clear_screen(); |
|
|
|
|
|
|
|
kernel_motd(); |
|
|
|
|
|
|
|
|
|
|
|
vga_init(); // Initialize the screen first
|
|
|
|
vga_init(); // Initialize the screen first
|
|
|
|
// i.e. clear the screen et cetera.
|
|
|
|
// i.e. clear the screen et cetera.
|
|
|
|
|
|
|
|
|
|
|
@ -15,19 +28,4 @@ void kernel_init() { |
|
|
|
// TODO: make this work
|
|
|
|
// TODO: make this work
|
|
|
|
// enable_paging();
|
|
|
|
// enable_paging();
|
|
|
|
|
|
|
|
|
|
|
|
printalign(" ___ ____ ", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign(" ___ / _ \\/ ___| ", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign(" / _ \\ | | \\___ \\ ", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign("| __/ |_| |___) | A x86 operating system,", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign(" \\___|\\___/|____/ licenced under GPL-2.0", BANNER_COLOR, MIDDLE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
println(""); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printalign("Fun fact: e = lim[h->0] (1+h)^(1/h)", DEFAULT_COLOR, MIDDLE); |
|
|
|
|
|
|
|
printalign("Created by Elias Almqvist", DEFAULT_COLOR, MIDDLE); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// for(char* line = *eos_art; line; line=*++eos_art) {
|
|
|
|
|
|
|
|
// print(":::: ");
|
|
|
|
|
|
|
|
// printalign(line, DEFAULT_COLOR);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|