aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2005-01-19 18:13:40 +0000
committerKen Smith <kensmith@FreeBSD.org>2005-01-19 18:13:40 +0000
commit7c378b035f98b805992264d15ccd3e4261df882a (patch)
tree36d6d5a4ea625224d060cbaf37e599f85e465916
parent84311d7439ff5f71e8ed346420df0a7d3ac9937c (diff)
downloadsrc-7c378b035f98b805992264d15ccd3e4261df882a.tar.gz
src-7c378b035f98b805992264d15ccd3e4261df882a.zip
MFS of v1.55.2.10:
MFC revision 1.105: date: 2002/09/07 04:59:49; author: peter; state: Exp; lines: +1 -0 Supposedly linux has added a 6th syscall arg register (%ebp). I am not 100% sure if this is enough, but it will not harm anything. This appears to fix some breakage with the emulation of linux's mmap2(). When that function became available recently the linux executables started using it which broke installing the emulators/linux_base-8 port. Pointer from: akiyama Approved by: re (scottl)
Notes
Notes: svn path=/releng/4.11/; revision=140484
-rw-r--r--sys/i386/linux/linux_sysvec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 1ad3e1ecffdf..f66c43a8028c 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -722,6 +722,7 @@ linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, caddr_t *params)
args[2] = tf->tf_edx;
args[3] = tf->tf_esi;
args[4] = tf->tf_edi;
+ args[5] = tf->tf_ebp; /* Unconfirmed */
*params = NULL; /* no copyin */
}