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 9cdf9aa71b
commit e27ef97682
Signed by: asleepymoon
GPG Key ID: 7F4BD1EBD1D53E5A

View File

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