Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f24284ad authored by Hyok S. Choi's avatar Hyok S. Choi Committed by Russell King
Browse files

[ARM] noMMU: block sys_fork in nommu mode



The sys_fork is not supported in nommu mode. The other syscalls
that is not supported in nommu mode are to be defined as cond_signal
in kernel/sys_ni.c.

Signed-off-by: default avatarHyok S. Choi <hyok.choi@samsung.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ec1248e7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -234,7 +234,12 @@ asmlinkage int sys_ipc(uint call, int first, int second, int third,
 */
asmlinkage int sys_fork(struct pt_regs *regs)
{
#ifdef CONFIG_MMU
	return do_fork(SIGCHLD, regs->ARM_sp, regs, 0, NULL, NULL);
#else
	/* can not support in nommu mode */
	return(-EINVAL);
#endif
}

/* Clone a task - this clones the calling program thread.