mirror of https://github.com/E-Almqvist/eOS
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
802 B
35 lines
802 B
#include "kernel.h"
|
|
#include "paging.h"
|
|
#include "../drivers/vga.h"
|
|
#include "../lib/str.h"
|
|
#include "../lib/strf.h"
|
|
|
|
void display_status(char* status_text, unsigned int bg_color) {
|
|
clear_row(0);
|
|
set_cursor_pos(0, 0);
|
|
|
|
print(status_text, bg_color | STATUS_TEXT_COLOR);
|
|
}
|
|
|
|
void init() {
|
|
display_status("Kernel loaded", 0x70);
|
|
|
|
vga_init(); // Initialize the screen first
|
|
// i.e. clear the screen et cetera.
|
|
|
|
char* title = "eOS Version 0.2 2021";
|
|
println(title, DEFAULT_COLOR);
|
|
|
|
char* subtitle = "A x86 operating system, licenced under GPL-2.0";
|
|
println(subtitle, DEFAULT_COLOR);
|
|
|
|
/*
|
|
print("Kernel offset: ", DEFAULT_COLOR);
|
|
println("0x1000", DEFAULT_COLOR);
|
|
*/
|
|
|
|
char* strbuf = "Concat test: ";
|
|
char* str2 = "Works!";
|
|
strbuf = strcat(strbuf, str2);
|
|
println(strbuf, DEFAULT_COLOR);
|
|
}
|
|
|