core: Make thread.enterTask() automatically set the thread state to Running
This commit is contained in:
parent
14047e0c3c
commit
785335bd9a
@ -105,7 +105,6 @@ export fn _start(magic: u32, info: MultibootInfo) callconv(.C) noreturn {
|
||||
|
||||
platform.platformEndInit();
|
||||
|
||||
init.state = .Running;
|
||||
thread.enterTask(init);
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,8 @@ pub fn enterTask(task: *ThreadControlBlock) noreturn {
|
||||
table = space.phys;
|
||||
}
|
||||
|
||||
task.state = .Running;
|
||||
|
||||
arch.enterTask(&task.regs, vmm.PHYSICAL_MAPPING_BASE, table.address);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user