Module Name: src
Committed By: maya
Date: Sat Nov 25 04:11:37 UTC 2017
Modified Files:
src/sys/arch/sparc/sparc: locore.s
Log Message:
Avoid an instruction requiring a higher alignment than we are guaranteed
Fixes PR port-sparc/52721: ddb errors on ps command
Thanks to mlelstv.
To generate a diff of this commit:
cvs rdiff -u -r1.268 -r1.269 src/sys/arch/sparc/sparc/locore.s
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/sparc/locore.s
diff -u src/sys/arch/sparc/sparc/locore.s:1.268 src/sys/arch/sparc/sparc/locore.s:1.269
--- src/sys/arch/sparc/sparc/locore.s:1.268 Sun Nov 4 00:32:47 2012
+++ src/sys/arch/sparc/sparc/locore.s Sat Nov 25 04:11:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.268 2012/11/04 00:32:47 chs Exp $ */
+/* $NetBSD: locore.s,v 1.269 2017/11/25 04:11:37 maya Exp $ */
/*
* Copyright (c) 1996 Paul Kranenburg
@@ -6288,8 +6288,9 @@ ENTRY(longjmp)
cmp %fp, %g7 ! compare against desired frame
bl,a 1b ! if below,
restore ! pop frame and loop
- be,a 2f ! if there,
- ldd [%g1+0], %o2 ! fetch return %sp and pc, and get out
+ ld [%g1+0], %o2 ! fetch return %sp
+ be,a 2f ! we're there, get out
+ ld [%g1+4], %o3 ! fetch return pc
Llongjmpbotch:
! otherwise, went too far; bomb out