git://scm.lunaixsky.com
/
lunaix-os.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
72f2f4e40b05cbaf7690dd5e9c1a144ab80ab531
[lunaix-os.git]
/
lunaix-os
/
kernel
/
kernel.c
1
#include <lunaix/tty/tty.h>
2
#include <lunaix/arch/gdt.h>
3
#include <lunaix/arch/idt.h>
4
5
void
6
_kernel_init()
7
{
8
// TODO
9
_init_gdt();
10
_init_idt();
11
}
12
13
void
14
_kernel_main(void* info_table)
15
{
16
// remove the warning
17
(void)info_table;
18
// TODO
19
tty_set_theme(VGA_COLOR_GREEN, VGA_COLOR_BLACK);
20
tty_put_str("Hello kernel world!\nThis is second line.");
21
}