NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/59327: user stack pointer is not aligned properly
The following reply was made to PR kern/59327; it has been noted by GNATS.
From: Rin Okuyama <rokuyama.rk%gmail.com@localhost>
To: gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost,
"source-changes-d%netbsd.org@localhost" <source-changes-d%NetBSD.org@localhost>
Cc:
Subject: Re: kern/59327: user stack pointer is not aligned properly
Date: Mon, 21 Apr 2025 23:19:33 +0900
Sorry, I forgot to mention PR#59327.
rin
-------- Forwarded Message --------
Subject: CVS commit: src/tests/kernel/arch/mips
Date: Mon, 21 Apr 2025 14:17:38 +0000
From: Rin Okuyama <rin%netbsd.org@localhost>
Reply-To: source-changes-d%NetBSD.org@localhost
To: source-changes-full%NetBSD.org@localhost
Module Name: src
Committed By: rin
Date: Mon Apr 21 14:17:38 UTC 2025
Modified Files:
src/tests/kernel/arch/mips: stack_pointer.h
Log Message:
t_signal_and_sp: mips: Fix {MISALIGN,FIX}_SP() for !o32
Use `daddiu` instead of `addiu` as done in <mips/asm.h>.
Otherwise, +/-1 is added to lower-32-bits of sp, and then
results are sign-extended to whole-64-bits register (oops!!).
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/arch/mips/stack_pointer.h
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