Update
This commit is contained in:
parent
8e30fda4de
commit
445de6be04
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue