regs->ea = pc;
regs->sp = sp;
}
- #include <linux/elfcore.h>
-
- /* Fill in the FPU structure for a core dump. */
- int dump_fpu(struct pt_regs *regs, elf_fpregset_t *r)
- {
- return 0; /* Nios2 has no FPU and thus no FPU registers */
- }
-
+
+asmlinkage int nios2_clone(unsigned long clone_flags, unsigned long newsp,
+ int __user *parent_tidptr, int __user *child_tidptr,
+ unsigned long tls)
+{
+ struct kernel_clone_args args = {
+ .flags = (lower_32_bits(clone_flags) & ~CSIGNAL),
+ .pidfd = parent_tidptr,
+ .child_tid = child_tidptr,
+ .parent_tid = parent_tidptr,
+ .exit_signal = (lower_32_bits(clone_flags) & CSIGNAL),
+ .stack = newsp,
+ .tls = tls,
+ };
+
+ return _do_fork(&args);
+}