Subject: CVS commit: [newlock] syssrc/sys/arch/i386/include
To: None <email@example.com>
From: Jason R Thorpe <firstname.lastname@example.org>
Date: 03/20/2002 03:55:54
Module Name: syssrc
Committed By: thorpej
Date: Wed Mar 20 01:55:54 UTC 2002
syssrc/sys/arch/i386/include [newlock]: lock.h
* 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 -r22.214.171.124 -r126.96.36.199 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.