mirror of
https://github.com/drasko/codezero.git
synced 2026-02-23 15:23:16 +01:00
Changes to make sure after a fork a child process can safely return.
This copies the parent kernel stack to child only for the part where the previous context is saved. Then the child registers are modified so that it would begin execution from returning of the system call.
This commit is contained in:
@@ -58,7 +58,7 @@ void syscall_init()
|
||||
}
|
||||
|
||||
/* Checks a syscall is legitimate and dispatches to appropriate handler. */
|
||||
int syscall(struct syscall_args *regs, unsigned long swi_addr)
|
||||
int syscall(syscall_context_t *regs, unsigned long swi_addr)
|
||||
{
|
||||
/* Check if genuine system call, coming from the syscall page */
|
||||
if ((swi_addr & ARM_SYSCALL_PAGE) == ARM_SYSCALL_PAGE) {
|
||||
|
||||
Reference in New Issue
Block a user