feat(pl/ke): initial amd64 support

This commit is contained in:
2026-03-28 19:14:17 +01:00
committed by rdmsr
parent 2e82a695e1
commit c6e63ed2bf
18 changed files with 279 additions and 87 deletions
+1
View File
@@ -1,6 +1,7 @@
const b = @import("base");
pub const std_options = b.std_options;
pub const panic = b.panic;
pub const rtl = @import("rtl");
+2 -2
View File
@@ -27,7 +27,7 @@ pub fn arm_timer(ns: b.Nanoseconds) void {
}, .it_interval = .{ .tv_sec = 0, .tv_nsec = 0 } };
if (c.timer_settime(timerid, 0, &value, null) == -1) {
ke.panic("timer_settime failed", .{});
@panic("timer_settime failed");
}
}
@@ -68,6 +68,6 @@ pub fn init_cpu() void {
sev._sigev_un._tid = linux.gettid();
if (c.timer_create(c.CLOCK_MONOTONIC, &sev, &timerid) == -1) {
ke.panic("timer_create failed", .{});
@panic("timer_create failed");
}
}