blob: db9c60e16e8b39698cfc4569d2612008e93e9b06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include "kernel.h" // general kernel config & includes
#include "console.h" // this will allow us to write to screen
// TODO: cleanup . how can i compile it without the includes!??
void int_kb_handler();
////////// KERNEL MAIN///// /////
//
void kernel_main()
{
// clear console
scr_clear();
// hello message
scr_put_string_nl(KERNEL_HELLO_MESSAGE);
// init interrupt decriptor table
// install and enable!
int_init(0x08);
int_install();
int_enable();
// install keyboard handler
int_install_ir(33, 0b10001110, 0x08,&int_kb_handler);
scr_put_string_nl("Interrupts are up and running");
// kernel main loop
while(1)
{
}
}
|