mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-30 06:48:22 +00:00
ps: initial process subsystem
This commit is contained in:
@@ -40,10 +40,8 @@ fn ap_entry(cpu_id: u32) callconv(.c) noreturn {
|
||||
fn make_thread(entrypoint: *const fn (?*anyopaque) void, stack: usize) *ke.Thread {
|
||||
const td = mm.zone.gpa.create(ke.Thread) catch @panic("Failed to allocate thread for AP");
|
||||
|
||||
td.init(stack, r.kib(32), entrypoint, null);
|
||||
td.init(stack, r.kib(32), ke.Thread.Priority.idle, entrypoint, null);
|
||||
|
||||
td.priority = 0;
|
||||
td.base_priority = 0;
|
||||
td.pinned = true;
|
||||
return td;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user