Update
This commit is contained in:
parent
8e30fda4de
commit
445de6be04
1 changed files with 12 additions and 1 deletions
|
@ -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.
|
// The following will be our kernel's entry point.
|
||||||
void _start(void) {
|
void _start(void) {
|
||||||
// Ensure we got a terminal
|
// 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
|
// We should now be able to call the Limine terminal to print out
|
||||||
// a simple "Hello World" to screen.
|
// a simple "Hello World" to screen.
|
||||||
|
const char *hello_msg = "Hello World";
|
||||||
|
|
||||||
struct limine_terminal *terminal = terminal_request.response->terminals[0];
|
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...
|
// We're done, just hang...
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Add table
Reference in a new issue