HomeFreeBSD

sys/arm64: fix COMPAT_FREEBSD32 __syscall()

Description

sys/arm64: fix COMPAT_FREEBSD32 __syscall()

It seems like _QUAD_LOWWORD was incorrectly expanded into 1,
which is correct for big endian but not little endian. This
means we always grab the padding word for the syscall number,
which is usually 0, causing SIGSYS to be delivered to the caller.
Reintroduce _QUAD_LOWWORD to fix the syscall.

PR: 290411
MFC after: 1 week
Discussed with: jrtc27
Reviewed by: cognet, emaste
Approved by: markj (mentor)
Fixes: 8c9c3144ccfa3061879b8cec015ee7d1010e4766
Differential Revision: https://reviews.freebsd.org/D53250

(cherry picked from commit 1ca09538d94273601dac08204c1d0b3ca9115864)

Details

Provenance
fuzAuthored on Tue, Oct 21, 9:35 PM
Reviewer
rG8c9c3144ccfa: Impleent COMPAT_FREEBSD32 for arm64.
Differential Revision
D53250: sys/arm64: fix COMPAT_FREEBSD32 __syscall()
Parents
rG0da1b6cfcc1d: sys/arm: add fp[gs]et* prototypes to <ieeefp.h>
Branches
Unknown
Tags
Unknown