Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit d005814

Browse files
authored
Update process.c
I dont have energy to explain what I added.
1 parent cdf6ac3 commit d005814

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/core/process.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ void scheduler(void) {
158158
cproc->proc_state = RUNNING;
159159
return;
160160
} else {
161-
// nothing to run TODO: The system should be idle.
161+
// set c proc to idle
162+
cproc->proc_state = IDLE;
162163
return;
163164
}
164165
}

0 commit comments

Comments
 (0)