diff options
Diffstat (limited to 'boot/boot.zig')
| -rw-r--r-- | boot/boot.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/boot/boot.zig b/boot/boot.zig index 77e7bb6..4e9d0b4 100644 --- a/boot/boot.zig +++ b/boot/boot.zig @@ -7,6 +7,7 @@ const idt = @import("idt.zig"); const pmm = @import("pmm.zig"); const heap = @import("heap.zig"); const vmm = @import("vmm.zig"); +const user = @import("user.zig"); const keyboard = @import("keyboard.zig"); const bridge = @import("bridge"); @@ -54,6 +55,7 @@ export fn _start() callconv(.c) noreturn { gdt.load(); idt.init(); + user.installSyscall(); // int 0x80 gate at DPL 3 // NOTE: CPU interrupts stay off until the event loop's sti // which is after the VM has run that\ serial.write("gdt + idt loaded\r\n"); @@ -119,6 +121,8 @@ export fn _start() callconv(.c) noreturn { serial.write("vmm test: switched back OK\r\n"); } + user.runTestProgram(); + // hand the kernel heap + raw framebuffer to revo and bring up the VM const fb: ?bridge.Fb = if (framebuffer.get()) |s| .{ .ptr = s.address, |
