Subject: PR/25896 CVS commit: src/sys/arch/sparc/include
To: None <port-sparc-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Chuck Silvers <chs@netbsd.org>
List: netbsd-bugs
Date: 02/03/2005 16:18:02
The following reply was made to PR port-sparc/25896; it has been noted by GNATS.

From: Chuck Silvers <chs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/25896 CVS commit: src/sys/arch/sparc/include
Date: Thu,  3 Feb 2005 16:17:22 +0000 (UTC)

 Module Name:	src
 Committed By:	chs
 Date:		Thu Feb  3 16:17:22 UTC 2005
 
 Modified Files:
 	src/sys/arch/sparc/include: lock.h
 
 Log Message:
 add the early-clobber modifier on the destination reg of ldstub.
 in some implementations (eg. sun4c), the hardware modifies the destination
 reg before checking for write permission on the memory location.  without
 this change, gcc was using the same register for the address and the
 destination, so if the store part of the instruction faulted, the address
 was already gone when the instruction was retried after resolving the fault.
 part of PR 25633, PR 25896.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.17 -r1.18 src/sys/arch/sparc/include/lock.h
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.