svn commit: r249589 - head/sys/mips/malta

Adrian Chadd adrian at FreeBSD.org
Wed Apr 17 18:26:02 UTC 2013


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");


More information about the svn-src-head mailing list