Subject: CVS commit: [newlock] syssrc/sys/arch/i386/include
To: None <>
From: Jason R Thorpe <>
List: source-changes
Date: 03/20/2002 03:55:54
Module Name:	syssrc
Committed By:	thorpej
Date:		Wed Mar 20 01:55:54 UTC 2002

Modified Files:
	syssrc/sys/arch/i386/include [newlock]: lock.h

Log Message:
* Add a memory clobber to the atomic operations in the lock-acquire
  path, so that the compiler will treat them as a memory access barrier.
* Spin with a normal memory load until the lock is released and then
  retry the compare-and-swap in __cpu_simple_lock().

To generate a diff of this commit:
cvs rdiff -r1.5.10.2 -r1.5.10.3 syssrc/sys/arch/i386/include/lock.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.