From owner-cvs-all Fri Oct 20 1:11:16 2000 Delivered-To: cvs-all@freebsd.org Received: from server.baldwin.cx (server.geekhouse.net [64.81.6.52]) by hub.freebsd.org (Postfix) with ESMTP id 42B8E37B479; Fri, 20 Oct 2000 01:11:11 -0700 (PDT) Received: from laptop.baldwin.cx (termroom.bsdcon.org [206.55.247.2]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id BAA05107; Fri, 20 Oct 2000 01:16:39 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200010200726.AAA40906@freefall.freebsd.org> Date: Fri, 20 Oct 2000 01:10:49 -0700 (PDT) From: John Baldwin To: John Baldwin , alpha@FreeBSD.org, ia64@FreeBSD.org Subject: RE: cvs commit: src/sys/sys mutex.h src/sys/kern kern_mutex.c sr Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 20-Oct-00 John Baldwin wrote: > jhb 2000/10/20 00:26:37 PDT > > Modified files: > sys/kern kern_mutex.c > sys/i386/include mutex.h > sys/alpha/include mutex.h > sys/ia64/include mutex.h > sys/conf files.alpha files.i386 files.ia64 > files.pc98 options > Added files: > sys/sys mutex.h > Removed files: > sys/i386/i386 synch_machdep.c > sys/alpha/alpha synch_machdep.c > sys/ia64/ia64 synch_machdep.c > Log: > - Make the mutex code almost completely machine independent. This greatly > reducues the maintenance load for the mutex code. The only MD portions > of the mutex code are in machine/mutex.h now, which include the assembly > macros for handling mutexes as well as optionally overriding the mutex > micro-operations. For example, we use optimized micro-ops on the x86 > platform #ifndef I386_CPU. WARNING: I haven't directly tested this on the alpha, or on the ia64, although it has been running for the past week or so on x86. However, I did test to make sure that the atomic.h changes that make all this possible did compile fine on the alpha. Also, the code is MI, so in theory the architecture shouldn't matter. I'll be testing a remote alpha kernel build in the very near future, but this is just a heads up to watch your step on non-x86. :) -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message