patch-2.4.25 linux-2.4.25/arch/mips64/kernel/syscall.c
Next file: linux-2.4.25/arch/mips64/kernel/time.c
Previous file: linux-2.4.25/arch/mips64/kernel/smp.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/mips64/kernel/syscall.c
- Orig date:
2003-08-25 04:44:40.000000000 -0700
diff -urN linux-2.4.24/arch/mips64/kernel/syscall.c linux-2.4.25/arch/mips64/kernel/syscall.c
@@ -105,6 +105,19 @@
}
}
+unsigned long check_unmapped_fixed_area(struct file *file, unsigned long addr,
+ unsigned long len, unsigned long pgoff, unsigned long flags)
+{
+ if (addr > TASK_SIZE - len)
+ return -ENOMEM;
+ if (addr & ~PAGE_MASK)
+ return -EINVAL;
+ if (flags & MAP_SHARED && pages_do_alias((pgoff << PAGE_SHIFT), addr))
+ return -EINVAL;
+
+ return addr;
+}
+
asmlinkage unsigned long
sys_mmap(unsigned long addr, size_t len, unsigned long prot,
unsigned long flags, unsigned long fd, off_t offset)
@@ -134,22 +147,22 @@
return error;
}
-asmlinkage int sys_fork(abi64_no_regargs, struct pt_regs regs)
+save_static_function(sys_fork);
+static_unused int _sys_fork(abi64_no_regargs, struct pt_regs regs)
{
int res;
- save_static(®s);
res = do_fork(SIGCHLD, regs.regs[29], ®s, 0);
return res;
}
-asmlinkage int sys_clone(abi64_no_regargs, struct pt_regs regs)
+save_static_function(sys_clone);
+static_unused int _sys_clone(abi64_no_regargs, struct pt_regs regs)
{
unsigned long clone_flags;
unsigned long newsp;
int res;
- save_static(®s);
clone_flags = regs.regs[4];
newsp = regs.regs[5];
if (!newsp)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)