]> asedeno.scripts.mit.edu Git - linux.git/commit
m68k: Wire up clone3() syscall
authorKars de Jong <jongk@linux-m68k.org>
Sun, 24 Nov 2019 19:52:25 +0000 (20:52 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 12 Jan 2020 15:49:20 +0000 (16:49 +0100)
commite8bb2a2a1d51511e6b3f7e08125d52ec73c11139
tree0a99bdc9e0a44185c4f2902054d771e8cfe80147
parent46cf053efec6a3a5f343fead837777efe8252a46
m68k: Wire up clone3() syscall

Wire up the clone3() syscall for m68k. The special entry point is done in
assembler as was done for clone() as well. This is needed because all
registers need to be saved. The C wrapper then calls the generic
sys_clone3() with the correct arguments.

Tested on A1200 using the simple test program from:

  https://lore.kernel.org/lkml/20190716130631.tohj4ub54md25dys@brauner.io/

Signed-off-by: Kars de Jong <jongk@linux-m68k.org>
Link: https://lore.kernel.org/r/20191124195225.31230-1-jongk@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/unistd.h
arch/m68k/kernel/entry.S
arch/m68k/kernel/process.c
arch/m68k/kernel/syscalls/syscall.tbl