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");
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to