HomeFreeBSD

sys/arm64: fix return values of freebsd32_{set,swap}context()

Description

sys/arm64: fix return values of freebsd32_{set,swap}context()

This patch aligns the return values of freebsd32_{set,swap}context()
with their counterparts on amd64 and powerpc64, fixing the setcontext()
and swapcontext() calls in armv7 applications running on aarch64.

In particular, this fixes random crashes in armv7 Ruby applications
running on aarch64 hosts.

Approved by: so
Security: FreeBSD-EN-26:16.arm64
Tested by: fuz
MFC after: 1 week

(cherry picked from commit 92ae21e8a155734f73589b7ef9fa19a6bb6d042f)
(cherry picked from commit 58a15fe75cc59a73016f00069f2dad001d798edf)

Details

Provenance
pkubajAuthored on Jun 11 2026, 11:41 AM
markjCommitted on Jun 30 2026, 2:31 AM
Parents
rG0b1dfc94785e: Add UPDATING entries and bump version
Branches
Unknown
Tags
Unknown