]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make arm64 32-bit mode compile with COMPAT_43
authorimp <imp@FreeBSD.org>
Thu, 8 Aug 2019 17:48:07 +0000 (17:48 +0000)
committerimp <imp@FreeBSD.org>
Thu, 8 Aug 2019 17:48:07 +0000 (17:48 +0000)
commit33b1fa4d646ae06caa6e5464cada0c83957d684a
tree5fe54ae57f2aa2a5abb6f173d65d3950e67a3b33
parent2517052f3c3cda093a493fb604b15cdbb7e91e09
Make arm64 32-bit mode compile with COMPAT_43

The COMPAT_43 option isn't quite like the other compat options, and arm64 makes
attempts to support it in 64-bit mode. In 32-bit compat mode, however, two
syscall implementations that COMPAT_FREEBSD32 assumes will be there are
missing. Provide implementations for these: ofreebsd32_sigreturn (which we'll
never encounter, so implement it as nosys as is done in kern_sig.c) and
ofreebsd32_getpagesize, where we'll always return 4096 since that's the only
PAGE_SIZE we support, similar to how the ia32 implementation does things.

Reviewed by: manu@
Differential Revision: https://reviews.freebsd.org/D21192
sys/arm64/arm64/freebsd32_machdep.c