From owner-svn-src-all@FreeBSD.ORG Wed Apr 17 18:26:02 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 758387D9; Wed, 17 Apr 2013 18:26:02 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 67C34D48; Wed, 17 Apr 2013 18:26:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3HIQ2HN006001; Wed, 17 Apr 2013 18:26:02 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3HIQ2AZ006000; Wed, 17 Apr 2013 18:26:02 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201304171826.r3HIQ2AZ006000@svn.freebsd.org> From: Adrian Chadd Date: Wed, 17 Apr 2013 18:26:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249589 - head/sys/mips/malta X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Apr 2013 18:26:02 -0000 Author: adrian Date: Wed Apr 17 18:26:01 2013 New Revision: 249589 URL: http://svnweb.freebsd.org/changeset/base/249589 Log: Add the static kernel boot environment, needed to actually boot this thing. (Wasting 4k just as a temporary placeholder for a boot environment seems a bit ridiculous, but hey.) Tested: gxemul: $ gxemul -e malta -d i:/home/adrian/work/freebsd/svn/mfsroot-rspro.img -C 4Kc /tftpboot/kernel.MALTA Modified: head/sys/mips/malta/malta_machdep.c Modified: head/sys/mips/malta/malta_machdep.c ============================================================================== --- head/sys/mips/malta/malta_machdep.c Wed Apr 17 11:56:11 2013 (r249588) +++ head/sys/mips/malta/malta_machdep.c Wed Apr 17 18:26:01 2013 (r249589) @@ -83,6 +83,11 @@ void lcd_puts(char *); void malta_reset(void); /* + * Temporary boot environment used at startup. + */ +static char boot1_env[4096]; + +/* * Offsets to MALTA LCD characters. */ static int malta_lcd_offs[] = { @@ -278,6 +283,7 @@ platform_start(__register_t a0, __regist mips_pcpu0_init(); platform_counter_freq = malta_cpu_freq(); mips_timer_early_init(platform_counter_freq); + init_static_kenv(boot1_env, sizeof(boot1_env)); cninit(); printf("entry: platform_start()\n");