Received: by mail.netbsd.org (Postfix, from userid 605) id D6B4D14A17A; Sat, 11 Jan 2014 08:07:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id EB9E914A179 for ; Sat, 11 Jan 2014 08:07:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Jb6YH1X8rIco for ; Sat, 11 Jan 2014 08:07:17 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 0223214A16B for ; Sat, 11 Jan 2014 08:07:16 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id DDB6696; Sat, 11 Jan 2014 08:07:16 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 11 Jan 2014 08:07:16 +0000 From: "Izumi Tsutsui" Subject: CVS commit: src/sys/arch/luna68k To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20140111080716.DDB6696@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Izumi Tsutsui" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: tsutsui Date: Sat Jan 11 08:07:16 UTC 2014 Modified Files: src/sys/arch/luna68k/luna68k: autoconf.c locore.s machdep.c Added Files: src/sys/arch/luna68k/include: bootinfo.h Log Message: Add support to pass boothowto and bootdev info from bootloader to kernel. Kernel side changes: - use %d7 (boothowto) and %d6 (bootdev) to pass info and also use old macro in as ancient 4.4BSD did for simplicity - add to define values as API to pass these info - save boothowto and bootdev in registers right after zero'ing bss - add MD device_register(9) to check booted_device per passed bootdev info - merge old bootarg checks in rootconf() and luna68k_init() with tweaks for backward compatibility (direct boot a.out kernel from ROM monitor without bootloader still works) To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/sys/arch/luna68k/include/bootinfo.h cvs rdiff -u -r1.14 -r1.15 src/sys/arch/luna68k/luna68k/autoconf.c cvs rdiff -u -r1.53 -r1.54 src/sys/arch/luna68k/luna68k/locore.s cvs rdiff -u -r1.95 -r1.96 src/sys/arch/luna68k/luna68k/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.