aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/truss
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2021-09-22 23:23:07 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2021-09-22 23:26:42 +0000
commitf4b7018af11a1ab3edfcce8bc0bfa521364cdeb0 (patch)
tree5501b4a830aa2bc0a00dd01330304ecfc234f862 /usr.bin/truss
parentb31c5a25321363ab95c1642dffc6e92319dc42ce (diff)
downloadsrc-f4b7018af11a1ab3edfcce8bc0bfa521364cdeb0.tar.gz
src-f4b7018af11a1ab3edfcce8bc0bfa521364cdeb0.zip
Diffstat (limited to 'usr.bin/truss')
-rw-r--r--usr.bin/truss/syscalls.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index 9cd53e71cc9b..128ae624cf5f 100644
--- a/usr.bin/truss/syscalls.c
+++ b/usr.bin/truss/syscalls.c
@@ -792,14 +792,11 @@ print_mask_arg32(bool (*decoder)(FILE *, uint32_t, uint32_t *), FILE *fp,
* decoding arguments.
*/
static void
-quad_fixup(struct procabi *abi, struct syscall_decode *sc)
+quad_fixup(struct syscall_decode *sc)
{
int offset, prev;
u_int i;
-#ifndef __aarch64__
- (void)abi;
-#endif
offset = 0;
prev = -1;
for (i = 0; i < sc->nargs; i++) {
@@ -820,13 +817,10 @@ quad_fixup(struct procabi *abi, struct syscall_decode *sc)
* not aligned, the calling convention inserts
* a 32-bit pad argument that should be skipped.
*/
-#ifdef __aarch64__
- if (abi->pointer_size == sizeof(uint32_t))
-#endif
- if (sc->args[i].offset % 2 == 1) {
- sc->args[i].offset++;
- offset++;
- }
+ if (sc->args[i].offset % 2 == 1) {
+ sc->args[i].offset++;
+ offset++;
+ }
#endif
offset++;
default:
@@ -860,7 +854,7 @@ add_syscall(struct procabi *abi, u_int number, struct syscall *sc)
* procabi instead.
*/
if (abi->pointer_size == 4)
- quad_fixup(abi, &sc->decode);
+ quad_fixup(&sc->decode);
if (number < nitems(abi->syscalls)) {
assert(abi->syscalls[number] == NULL);