NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc/52721 (ddb errors on ps command)



Synopsis: ddb errors on ps command

State-Changed-From-To: open->feedback
State-Changed-By: maya%NetBSD.org@localhost
State-Changed-When: Fri, 24 Nov 2017 19:58:06 +0000
State-Changed-Why:
mlelstv suggested the following change:
Index: sparc/locore.s
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/sparc/locore.s,v
retrieving revision 1.268
diff -u -r1.268 locore.s
--- sparc/locore.s	4 Nov 2012 00:32:47 -0000	1.268
+++ sparc/locore.s	24 Nov 2017 19:50:06 -0000
@@ -6288,8 +6288,9 @@
 	cmp	%fp, %g7	! compare against desired frame
 	bl,a	1b		! if below,
 	 restore		!    pop frame and loop
+	 ld	[%g1+0], %o2
 	be,a	2f		! if there,
-	 ldd	[%g1+0], %o2	!    fetch return %sp and pc, and get out
+	 ld	[%g1+4], %o3	!    fetch return %sp and pc, and get out
 
 Llongjmpbotch:
 				! otherwise, went too far; bomb out



for convenience, I've uploaded a -current kernel with it here: https://ftp.netbsd.org/pub/NetBSD/misc/maya/PR52721
md5: b997ab3ecc523fc7baccfe7003d7945f

Please test if it works.





Home | Main Index | Thread Index | Old Index