feat: initial ACPI support

This commit is contained in:
Loïc Grégoire
2026-04-11 15:21:24 -04:00
parent 138031690d
commit 1166e0af43
10 changed files with 610 additions and 4 deletions
+8
View File
@@ -39,6 +39,14 @@ pub fn tib(comptime N: u32) usize {
return gib(N) * 1024;
}
pub inline fn mmio_read(comptime T: type, addr: usize) T {
return @as(*volatile T, @ptrFromInt(addr)).*;
}
pub inline fn mmio_write(comptime T: type, addr: usize, value: T) void {
@as(*volatile T, @ptrFromInt(addr)).* = value;
}
pub const std_options = std.Options{
.logFn = ke.log.log,
};