This commit is contained in:
mintsuki 2023-02-28 12:41:28 +01:00
parent 8e30fda4de
commit 445de6be04

View file

@ -17,6 +17,15 @@ static void done(void) {
}
}
// Our quick and dirty strlen() implementation.
size_t strlen(const char *str) {
size_t ret = 0;
while (*str++) {
ret++;
}
return ret;
}
// The following will be our kernel's entry point.
void _start(void) {
// Ensure we got a terminal
@ -27,8 +36,10 @@ void _start(void) {
// We should now be able to call the Limine terminal to print out
// a simple "Hello World" to screen.
const char *hello_msg = "Hello World";
struct limine_terminal *terminal = terminal_request.response->terminals[0];
terminal_request.response->write(terminal, "Hello World", 11);
terminal_request.response->write(terminal, hello_msg, strlen(hello_msg));
// We're done, just hang...
done();