]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle 64-bit system call arguments (off_t, id_t).
authorjhb <jhb@FreeBSD.org>
Sat, 1 Oct 2016 22:01:41 +0000 (22:01 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 1 Oct 2016 22:01:41 +0000 (22:01 +0000)
commit3ab6693971d7fe8eb1131f33de80260ee7cad3be
tree8b2ad6cc2d3d57199af32f0e51022f41dc1e0ecd
parent16f74064cfb645f6be2553a262b964a498352d52
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.
usr.bin/kdump/kdump.c