Date: Tue, 2 Apr 2002 14:19:16 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> 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 Message-ID: <200204022219.g32MJG238220@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204022219.g32MJG238220>