shell can launch another user processgit add .git add .!

This commit is contained in:
2026-07-12 20:13:13 -05:00
parent e2ab130324
commit 5c7febbbf0
15 changed files with 403 additions and 220 deletions

View File

@@ -186,4 +186,13 @@ void wake(process_t* task) {
if (task->state == STATE_SLEEPING || task->state == STATE_BLOCKED) {
task->state = STATE_READY;
}
}
process_t* get_task_by_pid(uint32_t pid) {
process_t* cur = process_table;
while (cur) {
if (cur->pid == pid) break;
cur = cur->sched_next;
}
return cur;
}