From owner-cvs-all Fri Oct 2 09:34:02 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA25008 for cvs-all-outgoing; Fri, 2 Oct 1998 09:34:02 -0700 (PDT) (envelope-from owner-cvs-all) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24967; Fri, 2 Oct 1998 09:33:49 -0700 (PDT) (envelope-from msmith@FreeBSD.org) From: Michael Smith Received: (from msmith@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id JAA08982; Fri, 2 Oct 1998 09:33:43 -0700 (PDT) Date: Fri, 2 Oct 1998 09:33:43 -0700 (PDT) Message-Id: <199810021633.JAA08982@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/boot/common boot.c load_aout.c src/sys/boot/i386/btx/lib btxv86.h src/sys/boot/i386/libi386 aout_freebsd.c biosdisk.c comconsole.c libi386.h vidconsole.c src/sys/boot/i386/loader main.c Sender: owner-cvs-all@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk msmith 1998/10/02 09:33:43 PDT Modified files: sys/boot/common boot.c load_aout.c Log: boot.c Increase the robustness of the "is it time to boot yet" test; if the time skipped the "when" time, we would miss it. Don't spin in an endless loop if we don't find the first possible kernel suggested. When we run out, don't try to load an empty kernel name. load_aout.c printf format warnings Revision Changes Path 1.4 +9 -3 src/sys/boot/common/boot.c 1.8 +3 -3 src/sys/boot/common/load_aout.c Modified files: sys/boot/i386/btx/lib btxv86.h Log: Mark exit() as __attribute__((__noreturn__)) Revision Changes Path 1.3 +2 -2 src/sys/boot/i386/btx/lib/btxv86.h Modified files: sys/boot/i386/libi386 aout_freebsd.c biosdisk.c comconsole.c libi386.h vidconsole.c Log: aout_freebsd.c Use bd_getdev() to work out a dev_t for the root device. Allow $rootdev to override $currdev as the root device. biosdisk.c Save the slice table and disklabel when opening a disk. Add bd_getdev(), which attempts to return a dev_t corresponding to a given device. Cases which it still doesn't get right: - The inevitable da-when-wd-also-exists - Disks with no slice table (the slice number is not set correctly) The first is difficult to get right, the second will be fixed in an upcoming commit. comconsole.c vidconsole.c getchar() should return an 8-bit value; some BIOSsen pack extra information in %eax. libi386.h Remove some stale prototypes, add new ones. Revision Changes Path 1.8 +25 -13 src/sys/boot/i386/libi386/aout_freebsd.c 1.9 +143 -58 src/sys/boot/i386/libi386/biosdisk.c 1.3 +2 -2 src/sys/boot/i386/libi386/comconsole.c 1.7 +4 -12 src/sys/boot/i386/libi386/libi386.h 1.3 +2 -2 src/sys/boot/i386/libi386/vidconsole.c Modified files: sys/boot/i386/loader main.c Log: Set $currdev according to our best guess at the BIOS device that the previous bootstrap loaded us from. Revision Changes Path 1.9 +42 -34 src/sys/boot/i386/loader/main.c