aboutsummaryrefslogtreecommitdiff
path: root/src/interrupts.zig
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-05-13 19:42:54 +0200
committerHimbeer <himbeer@disroot.org>2024-05-13 19:42:54 +0200
commit2b99cb93b6fd2b199e445ece42ab2551f6b3bf88 (patch)
tree9f98ba94a23d361b9a16d01ce1ec1fd960b24b71 /src/interrupts.zig
parent05a7b65dfd64f9db63c134856c3f50f9ea6cdc94 (diff)
process: Set scheduling interval to 1000 Hz (now centrally stored)
Diffstat (limited to 'src/interrupts.zig')
-rw-r--r--src/interrupts.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interrupts.zig b/src/interrupts.zig
index 4d12f99..5e642bd 100644
--- a/src/interrupts.zig
+++ b/src/interrupts.zig
@@ -102,7 +102,7 @@ export fn handleTrap(epc: usize, tval: usize, cause_bits: usize, hart_id: usize,
switch (@as(AsyncCause, @enumFromInt(cause.num))) {
.supervisor_software => w.print("Hart {d}: Software interrupt\r\n", .{hart_id}) catch while (true) {},
.supervisor_timer => {
- time.interruptInSeconds(null, 1) catch |err| {
+ time.interruptInMillis(null, process.schedule_interval_millis) catch |err| {
std.debug.panic("Hart {d}: Unable to set interrupt timer: {any}", .{ hart_id, err });
};
schedule() catch |err| {