mirror of
https://github.com/drasko/codezero.git
synced 2026-03-02 18:43:16 +01:00
Fixed 2 more fork issues
Added setting of spsr for the new task. Added newly created task into mm0's global task list.
This commit is contained in:
@@ -158,6 +158,10 @@ int do_fork(struct tcb *parent)
|
||||
/* Notify fs0 about forked process */
|
||||
vfs_notify_fork(child, parent);
|
||||
|
||||
/* Add child to global task list */
|
||||
task_add_global(child);
|
||||
|
||||
printf("%s/%s: Starting forked child.\n", __TASKNAME__, __FUNCTION__);
|
||||
/* Start forked child. */
|
||||
l4_thread_control(THREAD_RUN, &ids);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user