core: Set new threads' priority to 127

This is halfway through the priority range, so user processes can either lower or raise their priority from the default.
This commit is contained in:
Gabriel 2025-02-18 19:30:46 +01:00
parent 9cbb043238
commit 8f6c952331

View File

@ -108,7 +108,7 @@ pub fn createThreadControlBlock(allocator: *pmm.FrameAllocator) !*ThreadControlB
thread.mapper = null; thread.mapper = null;
thread.regs = std.mem.zeroes(@TypeOf(thread.regs)); thread.regs = std.mem.zeroes(@TypeOf(thread.regs));
thread.state = .Inactive; thread.state = .Inactive;
thread.user_priority = 0; thread.user_priority = 127;
return thread; return thread;
} }