diff options
| author | hachem <im@hachem.wtf> | 2026-09-10 08:23:52 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-10 08:23:52 +0200 |
| commit | 8fc9aa8d84486c561776cda8f94e4dfa897a5d4d (patch) | |
| tree | 76d7fc5df77b80a1387e5c5fee88d5fda8315bcc /boot/boot.zig | |
| parent | ba4714f311e58b59043797ebd5c17caeccc74050 (diff) | |
feat: gdt/idt initialization
Diffstat (limited to 'boot/boot.zig')
| -rw-r--r-- | boot/boot.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boot/boot.zig b/boot/boot.zig index 2303409..6cc3d12 100644 --- a/boot/boot.zig +++ b/boot/boot.zig @@ -2,6 +2,8 @@ const std = @import("std"); const limine = @import("limine.zig"); const serial = @import("serial.zig"); const framebuffer = @import("framebuffer.zig"); +const gdt = @import("gdt.zig"); +const idt = @import("idt.zig"); // We need a panic handler otherwise zig won't be happy, // std usually formats a message through std.Io.Writer which @@ -27,6 +29,10 @@ export fn _start() callconv(.c) noreturn { serial.init(); serial.write("if you see this, it means revel didn't shit the bed\r\n"); + gdt.load(); + idt.init(); + serial.write("gdt + idt loaded\r\n"); + if (framebuffer.get()) |screen| { // XOR texture var y: usize = 0; |
