]> git.corax.cc Git - corax/commit
Modify process_create() function to finalize sys_fork() implementation:
authorMatthias Kruk <m@m10k.eu>
Mon, 4 Nov 2019 02:06:34 +0000 (11:06 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 4 Nov 2019 02:06:34 +0000 (11:06 +0900)
commitae851a082eeb68b20fd0e43973c1dcc26ab5af40
tree326d462cc0fa5a5f3566c8ecfec462ace7be2841
parentf2ca1cf92456c507b08ca5ca5683c9a8ec4528cb
Modify process_create() function to finalize sys_fork() implementation:
 - Copy the contents of the user-mode stack
 - Call task_prepare_fork to copy/modify the new task's kernel-mode stack
 - Set the state of the new task to TASK_STATE_FORKED
 - Set t_pgdir and other values that would normally be set by task_prepare
kernel/core/process.c