refactor: use root instead of base

This commit is contained in:
Loïc Grégoire
2026-04-17 20:58:25 -04:00
parent c68a93b302
commit 1aa6743f43
45 changed files with 199 additions and 229 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
const std = @import("std");
const b = @import("base");
const r = @import("root");
const rtl = @import("rtl");
const ke = b.ke;
const ke = r.ke;
const ki = ke.private;
/// Structure representing a kernel thread.
@@ -95,7 +95,7 @@ pub const Thread = struct {
/// - `stack_size`: Size of the stack
/// - `entry`: Entry point of the thread
/// - `arg`: Extraneous argument to be passed to `entry`
pub fn init(thread: *Thread, stack: b.VAddr, stack_size: usize, entry: *const fn (?*anyopaque) void, arg: ?*anyopaque) void {
pub fn init(thread: *Thread, stack: r.VAddr, stack_size: usize, entry: *const fn (?*anyopaque) void, arg: ?*anyopaque) void {
thread.* = .{
.context = .init(stack, stack_size, entry, arg),
.lock = .init(),