Collapse status of context into one status variable
This commit is contained in:
parent
fbbfe16764
commit
6ad843184d
5 changed files with 19 additions and 16 deletions
|
@ -149,7 +149,7 @@ pub extern fn kmain() {
|
|||
match context::contexts_mut().spawn(userspace_init) {
|
||||
Ok(context_lock) => {
|
||||
let mut context = context_lock.write();
|
||||
context.blocked = false;
|
||||
context.status = context::Status::Runnable;
|
||||
},
|
||||
Err(err) => {
|
||||
panic!("failed to spawn userspace_init: {:?}", err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue