[openfirmware] [commit] r2126 - forth/wrapper

repository service svn at openfirmware.info
Thu Jan 20 00:28:38 CET 2011


Author: wmb
Date: Thu Jan 20 00:28:37 2011
New Revision: 2126
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2126

Log:
Mostly-cosmetic changes to the wrapper.  You can turn on simulator sign-on chattiness by defining VERBOSE.

Modified:
   forth/wrapper/wrapper.c

Modified: forth/wrapper/wrapper.c
==============================================================================
--- forth/wrapper/wrapper.c	Thu Jan 20 00:26:40 2011	(r2125)
+++ forth/wrapper/wrapper.c	Thu Jan 20 00:28:37 2011	(r2126)
@@ -347,11 +347,11 @@
 INTERNAL long	f_crstr();
 
 #if defined(PPCSIM) || defined (ARMSIM)
-  /* These are not INTERNAL because the PowerPC simulator uses then */
-         long	c_key();
-         long	s_bye();
-         void   simulate();
-         void	restoremode();
+  /* These are not INTERNAL because the simulators use then */
+           long	c_key();
+           long	s_bye();
+           void	simulate();
+           void	restoremode();
 #else
   INTERNAL long	c_key();
   INTERNAL long	s_bye();
@@ -1002,9 +1002,15 @@
 	dictsize = sizeof(header) + imagesize +  extrasize ; 
 	dictsize += 16;		/* Allow for alignment */
 
-# ifdef PPCSIM
+# ifdef VERBOSE
+#  ifdef PPCSIM
 	printf("PowerPC Instruction Set Simulator\n");
 	printf("Copyright 1994 FirmWorks   All rights reserved\n");
+#  elif ARMSIM
+	printf("ARM Instruction Set Simulator\n");
+	printf("Copyright 1994 FirmWorks   All rights reserved\n");
+	printf("Copyright 2010 Apple, Inc. All rights reserved\n");
+#  endif
 # endif
 
 	loadaddr = (char *)m_alloc(dictsize);
@@ -1063,7 +1069,6 @@
 		 loadaddr, functions, ((long)loadaddr+dictsize - 16) & ~15,
 		 argc, argv, 1 /* 0=POWER, 1=PowerPC */);
 #elif defined(ARMSIM)
-        // printf("loadaddr = 0x%x\n",loadaddr);
 	simulate(0L, loadaddr, loadaddr, functions,
          ((long)loadaddr+dictsize - 16) & ~15, argc, argv);
 #else



More information about the openfirmware mailing list