From 782aef866e55128b1259c9ea5c8fb1134165876d Mon Sep 17 00:00:00 2001 From: claudio Date: Sun, 12 Apr 2026 13:17:39 +0000 Subject: [PATCH] Initialize all FPU registers to all 1 (or -NaN) not only the lower 32. OK miod@ kettenis@ deraadt@ --- sys/arch/sparc64/sparc64/trap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 2b9c2e0e981..fc43370e680 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.129 2026/03/08 17:07:31 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.130 2026/04/12 13:17:39 claudio Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -89,6 +89,8 @@ */ const struct fpstate initfpstate = { { ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, + ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, + ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0, ~0 } };