From 8fc9aa8d84486c561776cda8f94e4dfa897a5d4d Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 10 Sep 2026 08:23:52 +0200 Subject: feat: gdt/idt initialization --- boot/boot.zig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'boot/boot.zig') 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; -- cgit v1.3