From owner-cvs-all Tue Apr 2 14:19:24 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6561537B41B; Tue, 2 Apr 2002 14:19:16 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g32MJG238220; Tue, 2 Apr 2002 14:19:16 -0800 (PST) (envelope-from jhb) Message-Id: <200204022219.g32MJG238220@freefall.freebsd.org> From: John Baldwin Date: Tue, 2 Apr 2002 14:19:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/alpha machdep.c src/sys/i386/i386 machdep.c src/sys/ia64/ia64 machdep.c src/sys/kern kern_mutex.c src/sys/pc98/i386 machdep.c src/sys/powerpc/powerpc machdep.c src/sys/sparc64/sparc64 machdep.c src/sys/sys mutex.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/04/02 14:19:16 PST Modified files: sys/alpha/alpha machdep.c sys/i386/i386 machdep.c sys/ia64/ia64 machdep.c sys/kern kern_mutex.c sys/pc98/i386 machdep.c sys/powerpc/powerpc machdep.c sys/sparc64/sparc64 machdep.c sys/sys mutex.h Log: - Move the MI mutexes sched_lock and Giant from being declared in the various machdep.c's to being declared in kern_mutex.c. - Add a new function mutex_init() used to perform early initialization needed for mutexes such as setting up thread0's contested lock list and initializing MI mutexes. Change the various MD startup routines to call this function instead of duplicating all the code themselves. Tested on: alpha, i386 Revision Changes Path 1.171 +2 -14 src/sys/alpha/alpha/machdep.c 1.510 +1 -10 src/sys/i386/i386/machdep.c 1.87 +5 -18 src/sys/ia64/ia64/machdep.c 1.88 +27 -0 src/sys/kern/kern_mutex.c 1.273 +1 -10 src/sys/pc98/i386/machdep.c 1.26 +3 -23 src/sys/powerpc/powerpc/machdep.c 1.45 +1 -12 src/sys/sparc64/sparc64/machdep.c 1.54 +2 -1 src/sys/sys/mutex.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message