Microkernel thing OS experiment (Zig ⚡)
1const std = @import("std");
2const os = @import("os.zig");
3
4export fn _start() callconv(.c) noreturn {
5 _ = os.syscall1(SYS_poke, 0xB16B00B5BADBABE);
6 _ = os.syscall1(SYS_exit, 0x69696969);
7
8 die();
9}
10
11pub inline fn die() noreturn {
12 while (true) {}
13}
14
15pub const SYS_exit = 0x420;
16pub const SYS_poke = 0x69;