diff options
| author | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
| commit | 2725b95a1f78d2feac553d37252f2e560c2f9aac (patch) | |
| tree | 3e68aaf21c25fc2a46e3ee29fb4f23b188e3b3a4 /src/kernel.c | |
| parent | 57d8e2b236c7a185bdd941c247ef0dcc5961a24e (diff) | |
Setup interrupt handling
Remap master PIC to IOAddress 0x20 to avoid collisions with CPU
exceptions.
Setup a default interrupt handler and map all interrupts to this handler
by default.
Setup a Keyboard interrupt handler for testing purposes
Wire everything up in the Makefile
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'src/kernel.c')
| -rw-r--r-- | src/kernel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel.c b/src/kernel.c index c2a0150..8a8bd61 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -4,11 +4,14 @@ #include <toxic/string.h> #include <toxic/kernel.h> #include <toxic/idt.h> +#include <toxic/io.h> void start_kernel() { init_display(2); vprintl("Hello World!!!\n"); + vprintl("Testing it!!!\n"); interrupts_init(); + } |
