Subject: CVS commit: [newlock] syssrc/sys/arch/i386/include
To: None <firstname.lastname@example.org>
From: Jason R Thorpe <email@example.com>
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 -r126.96.36.199 -r188.8.131.52 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.