astryon/system/init/main.zig
Gabriel 13ec4bee87 Ready. Set. Go!
Microkernel development in Zig, should be fun! =]
2025-02-13 22:39:48 +01:00

14 lines
245 B
Zig

fn syscall(num: u64, arg: u64) void {
asm volatile ("int $66"
:
: [num] "{rax}" (num),
[arg] "{rdi}" (arg),
);
}
export fn _start(base: u64) callconv(.C) noreturn {
syscall(0, base);
while (true) {}
}