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 <r...@netbsd.org>
Reply-To: source-changes-d@NetBSD.org
To: source-changes-f...@netbsd.org

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.


Reply via email to