initial commit

This commit is contained in:
Loïc Grégoire
2026-03-21 22:46:54 -04:00
parent cf7df37498
commit 9e065ee023
45 changed files with 4430 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
const std = @import("std");
const b = @import("base");
const ke = b.ke;
const ki = ke.private;
/// Panics!
pub fn panic(comptime fmt: []const u8, args: anytype) noreturn {
ki.log.debug_lock.acquire_no_ipl();
var buf: [1024]u8 = undefined;
const str = std.fmt.bufPrint(&buf, fmt, args) catch unreachable;
ki.log.print("Panic!\n");
ki.log.print(str);
ki.log.debug_lock.release_no_ipl();
while (true) {}
}