diff --git a/src/kernel/arch/x86/arch.zig b/src/kernel/arch/x86/arch.zig index dc2e998..4991251 100644 --- a/src/kernel/arch/x86/arch.zig +++ b/src/kernel/arch/x86/arch.zig @@ -245,4 +245,5 @@ pub fn init(mem_profile: *const MemProfile, allocator: *Allocator, comptime opti test "" { _ = @import("gdt.zig"); _ = @import("idt.zig"); + _ = @import("syscalls.zig"); } diff --git a/src/kernel/arch/x86/syscalls.zig b/src/kernel/arch/x86/syscalls.zig index a0c6736..5dfc985 100644 --- a/src/kernel/arch/x86/syscalls.zig +++ b/src/kernel/arch/x86/syscalls.zig @@ -250,8 +250,8 @@ fn testHandler5(ctx: *arch.InterruptContext) u32 { } test "registerSyscall returns SyscallExists" { - registerSyscall(123, testHandler) catch unreachable; - registerSyscall(123, testHandler) catch |err| { + registerSyscall(123, testHandler0) catch unreachable; + registerSyscall(123, testHandler0) catch |err| { return; }; assert(false);