diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-03-20 23:35:15 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-03-20 23:35:15 +0000 |
commit | 5ee81b26a8494eaa2424d861e2bfbd61b6799d3f (patch) | |
tree | 5593eb19ddab3a95fdee2da20f333fea2679fc05 /cddl/contrib/opensolaris/cmd/dtrace | |
parent | bda54b8f964b4035dcf5aba394d14ed24370a6f2 (diff) | |
download | src-5ee81b26a8494eaa2424d861e2bfbd61b6799d3f.tar.gz src-5ee81b26a8494eaa2424d861e2bfbd61b6799d3f.zip |
Ensure that we use a 64-bit value for the last mmap() argument.
When using __syscall(2), the offset argument is passed on the stack on
amd64. Previously only 32 bits were written, so the upper 32 bits were
garbage and could cause the test to fail.
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=345355
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args.c index 9dd147b40bbe..ad483ee99629 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/tst.args.c @@ -35,7 +35,8 @@ int main(int argc, char **argv) { for (;;) { - (void) __syscall(SYS_mmap, NULL, 1, 2, 3, -1, 0x12345678); + (void) __syscall(SYS_mmap, NULL, (size_t)1, 2, 3, -1, + (off_t)0x12345678); } return (0); |