NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/59327 CVS commit: src/lib/libc/arch/mips/gen
The following reply was made to PR kern/59327; it has been noted by GNATS.
From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/59327 CVS commit: src/lib/libc/arch/mips/gen
Date: Fri, 25 Apr 2025 00:08:38 +0000
Module Name: src
Committed By: riastradh
Date: Fri Apr 25 00:08:38 UTC 2025
Modified Files:
src/lib/libc/arch/mips/gen: _resumecontext.S
Log Message:
mips __resumecontext: Align private stack frame size.
On mips64, UCONTEXT_SIZE is 664=0x298 (n32) or 744=0x2e8 (n64), but
sp is required to have 16-byte alignment in the ABI, so we need to
round the stack frame allocation up to 0x2a0 or 0x2f0.
No functional change intended on mips o32. Unlikely to have a
practical change on mips n32/n64, but possible if signal delivery
wins a race -- until we fix sp alignment in signal handler calls,
coming soon.
Based on a patch by rin@.
PR kern/59327: user stack pointer is not aligned properly
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/arch/mips/gen/_resumecontext.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index