patch-2.3.33 linux/mm/mremap.c
Next file: linux/Makefile
Previous file: linux/kernel/resource.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Dec 14 11:26:54 1999
- Orig file:
v2.3.32/linux/mm/mremap.c
- Orig date:
Wed Dec 8 14:11:28 1999
diff -u --recursive --new-file v2.3.32/linux/mm/mremap.c linux/mm/mremap.c
@@ -165,11 +165,15 @@
*
* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise
* This option implies MREMAP_MAYMOVE.
+ *
+ * "__new_addr" toying in order to not change the saved stack layout
+ * for old x86 binaries that don't want %edi to change..
*/
asmlinkage unsigned long sys_mremap(unsigned long addr,
unsigned long old_len, unsigned long new_len,
- unsigned long flags, unsigned long new_addr)
+ unsigned long flags, unsigned long __new_addr)
{
+ unsigned long new_addr = __new_addr;
struct vm_area_struct *vma;
unsigned long ret = -EINVAL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)