[MIPS] signals: Share even more code.
native and compat do_signal and handle_signal are identical and can easily be unified. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
#include <linux/completion.h>
|
||||
#include <linux/kallsyms.h>
|
||||
|
||||
#include <asm/abi.h>
|
||||
#include <asm/bootinfo.h>
|
||||
#include <asm/cpu.h>
|
||||
#include <asm/dsp.h>
|
||||
@@ -66,38 +65,6 @@ ATTRIB_NORET void cpu_idle(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Native o32 and N64 ABI without DSP ASE
|
||||
*/
|
||||
struct mips_abi mips_abi = {
|
||||
.do_signal = do_signal,
|
||||
#ifdef CONFIG_TRAD_SIGNALS
|
||||
.setup_frame = setup_frame,
|
||||
#endif
|
||||
.setup_rt_frame = setup_rt_frame
|
||||
};
|
||||
|
||||
#ifdef CONFIG_MIPS32_O32
|
||||
/*
|
||||
* o32 compatibility on 64-bit kernels, without DSP ASE
|
||||
*/
|
||||
struct mips_abi mips_abi_32 = {
|
||||
.do_signal = do_signal32,
|
||||
.setup_frame = setup_frame_32,
|
||||
.setup_rt_frame = setup_rt_frame_32
|
||||
};
|
||||
#endif /* CONFIG_MIPS32_O32 */
|
||||
|
||||
#ifdef CONFIG_MIPS32_N32
|
||||
/*
|
||||
* N32 on 64-bit kernels, without DSP ASE
|
||||
*/
|
||||
struct mips_abi mips_abi_n32 = {
|
||||
.do_signal = do_signal,
|
||||
.setup_rt_frame = setup_rt_frame_n32
|
||||
};
|
||||
#endif /* CONFIG_MIPS32_N32 */
|
||||
|
||||
asmlinkage void ret_from_fork(void);
|
||||
|
||||
void start_thread(struct pt_regs * regs, unsigned long pc, unsigned long sp)
|
||||
|
Reference in New Issue
Block a user