Subject: CVS commit: [netbsd-2] src/sys/arch/sparc/include
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <firstname.lastname@example.org>
Date: 03/16/2005 12:38:15
Module Name: src
Committed By: tron
Date: Wed Mar 16 12:38:15 UTC 2005
src/sys/arch/sparc/include [netbsd-2]: lock.h
Pull up revision 1.18 (requested by chs in ticket #1159):
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 -r220.127.116.11 -r18.104.22.168.2.1 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.