From owner-cvs-all@FreeBSD.ORG Tue Jan 23 08:01:20 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C8D216A400; Tue, 23 Jan 2007 08:01:20 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 8AFA613C465; Tue, 23 Jan 2007 08:01:20 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0N81KIR047585; Tue, 23 Jan 2007 08:01:20 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0N81K9i047584; Tue, 23 Jan 2007 08:01:20 GMT (envelope-from bde) Message-Id: <200701230801.l0N81K9i047584@repoman.freebsd.org> From: Bruce Evans Date: Tue, 23 Jan 2007 08:01:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/include clock.h src/sys/i386/i386 machdep.c src/sys/i386/isa clock.c src/sys/amd64/amd64 machdep.c src/sys/amd64/include clock.h src/sys/amd64/isa clock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 08:01:20 -0000 bde 2007-01-23 08:01:20 UTC FreeBSD src repository Modified files: sys/i386/include clock.h sys/i386/i386 machdep.c sys/i386/isa clock.c sys/amd64/amd64 machdep.c sys/amd64/include clock.h sys/amd64/isa clock.c Log: Cleaned up declaration and initialization of clock_lock. It is only used by clock code, so don't export it to the world for machdep.c to initialize. There is a minor problem initializing it before it is used, since although clock initialization is split up so that parts of it can be done early, the first part was never done early enough to actually work. Split it up a bit more and do the first part as late as possible to document the necessary order. The functions that implement the split are still bogusly exported. Cleaned up initialization of the i8254 clock hardware using the new split. Actually initialize it early enough, and don't work around it not being initialized in DELAY() when DELAY() is called early for initialization of some console drivers. This unfortunately moves a little more code before the early debugger breakpoint so that it is harder to debug. The ordering of console and related initialization is delicate because we want to do as little as possible before the breakpoint, but must initialize a console. Revision Changes Path 1.668 +6 -1 src/sys/amd64/amd64/machdep.c 1.54 +2 -1 src/sys/amd64/include/clock.h 1.229 +10 -13 src/sys/amd64/isa/clock.c 1.648 +6 -1 src/sys/i386/i386/machdep.c 1.56 +2 -1 src/sys/i386/include/clock.h 1.232 +10 -13 src/sys/i386/isa/clock.c