]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 306562: Handle 64-bit system call arguments (off_t, id_t).
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jan 2017 20:32:34 +0000 (20:32 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 6 Jan 2017 20:32:34 +0000 (20:32 +0000)
commitd5da92d0caed98e2cf4273316d70fe3935f5d096
treef384994f4857f1977ea952e928af1add0585d7c5
parentce83ac442e279d0839fefef934e79542d044a817
MFC 306562: Handle 64-bit system call arguments (off_t, id_t).

In particular, 64-bit system call arguments use up two register_t
arguments for 32-bit processes.  They must also be aligned on a 64-bit
boundary on 32-bit powerpc processes.  This fixes the decoding of
lseek(), procctl(), and wait6() arguments for 32-bit processes (both
native and via freebsd32).

Note that the ktrace system call return record only returns a single
register, so the return value of lseek is always truncated to the low
32-bits for 32-bit processes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@311546 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/kdump/kdump.c