git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
course 5 and some old slides
[lunaix-os.git]
/
lunaix-os
/
kernel
/
kernel.c
diff --git
a/lunaix-os/kernel/kernel.c
b/lunaix-os/kernel/kernel.c
index f9c7c4c5379d429186f4e5cff01e67dc468854e3..b0ef73053d186b44b600d5f7551fa6f11670bee7 100644
(file)
--- a/
lunaix-os/kernel/kernel.c
+++ b/
lunaix-os/kernel/kernel.c
@@
-1,10
+1,18
@@
#include <lunaix/tty/tty.h>
#include <lunaix/tty/tty.h>
+#include <lunaix/arch/gdt.h>
-void _kernel_init() {
+void
+_kernel_init()
+{
// TODO
// TODO
+ _init_gdt();
}
}
-void _kernel_main(void* info_table) {
+void
+_kernel_main(void* info_table)
+{
+ // remove the warning
+ (void)info_table;
// TODO
tty_set_theme(VGA_COLOR_GREEN, VGA_COLOR_BLACK);
tty_put_str("Hello kernel world!\nThis is second line.");
// TODO
tty_set_theme(VGA_COLOR_GREEN, VGA_COLOR_BLACK);
tty_put_str("Hello kernel world!\nThis is second line.");