aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/sim.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-08-01MIPS: Remove nabi_no_regargsPaul Burton1-12/+0
Our sigreturn functions make use of a macro named nabi_no_regargs to declare 8 dummy arguments to a function, forcing the compiler to expect a pt_regs structure on the stack rather than in argument registers. This is an ugly hack which unnecessarily causes these sigreturn functions to need to care about the calling convention of the ABI the kernel is built for. Although this is abstracted via nabi_no_regargs, it's still ugly & unnecessary. Remove nabi_no_regargs & the struct pt_regs argument from sigreturn functions, and instead use current_pt_regs() to find the struct pt_regs on the stack, which works cleanly regardless of ABI. Signed-off-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/20106/ Cc: James Hogan <jhogan@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org
2013-02-03mips: switch to generic sys_fork() and sys_clone()Al Viro1-12/+12
we still need the wrappers to store callee-saved registers in pt_regs, but once that done we can jump to kernel/fork.c variants. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2008-10-11MIPS: Move headfiles to new location below arch/mips/includeRalf Baechle1-0/+82
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>