diff options
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; |
