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)



The following reply was made to PR port-sparc/52721; it has been noted by GNATS.

From: Eddie Cottongim <jcotton%intergate.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-sparc/52721 (ddb errors on ps command)
Date: Fri, 24 Nov 2017 20:51:02 -0500

 I tried the supplied kernel build on SPARCStation-20 hardware, on both 
 the "ps" and "dmesg" commands where it was faulting, and it now operates 
 correctly. Also audited the fix and it seems reasonable; ldd requires a 
 doubleword aligned address, which apparently was not the case most of 
 the time.
 
 
 maya%NetBSD.org@localhost wrote:
 > 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.
 >
 >
 >
 >
 >   
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 



Home | Main Index | Thread Index | Old Index