Subject: CVS commit: [newlock2] src/sys/arch
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 02/02/2007 08:12:49
Module Name:	src
Committed By:	ad
Date:		Fri Feb  2 08:12:49 UTC 2007

Modified Files:
	src/sys/arch/amd64/amd64 [newlock2]: lock_stubs.S
	src/sys/arch/i386/i386 [newlock2]: lock_stubs.S
	src/sys/arch/x86/include [newlock2]: lock.h
	src/sys/arch/x86/x86 [newlock2]: patch.c

Log Message:
- Define memory barrier ops in lock_stubs.S.
- If lfence/mfence are available, patch them in at boot.
- Patch to a no-op if !MULTIPROCESSOR. XXX Should be determined at runtime.


To generate a diff of this commit:
cvs rdiff -r1.1.2.12 -r1.1.2.13 src/sys/arch/amd64/amd64/lock_stubs.S
cvs rdiff -r1.1.2.13 -r1.1.2.14 src/sys/arch/i386/i386/lock_stubs.S
cvs rdiff -r1.11.20.3 -r1.11.20.4 src/sys/arch/x86/include/lock.h
cvs rdiff -r1.1.2.3 -r1.1.2.4 src/sys/arch/x86/x86/patch.c

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