From ef2ccdcc95782a20f1c05d8137e51aa9d6f0235f Mon Sep 17 00:00:00 2001
From: Blue Swirl <blauwirbel@gmail.com>
Date: Sun, 6 Dec 2009 15:44:20 +0000
Subject: [PATCH] Fix openbios-unix compile on PPC

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 arch/ppc/kernel.h              |    4 ++++
 arch/ppc/qemu/kernel.h         |    4 ++++
 config/examples/ppc_config.xml |    2 +-
 3 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/kernel.h b/arch/ppc/kernel.h
index 20cda48..09cb9dc 100644
--- a/arch/ppc/kernel.h
+++ b/arch/ppc/kernel.h
@@ -20,8 +20,12 @@ extern void		fatal_error( const char *str );
 extern void		exit( int status );
 
 /* start.S */
+#ifndef FCOMPILER
 extern void 		flush_icache_range( char *start, char *stop );
 extern char		of_rtas_start[], of_rtas_end[];
+#else
+#define flush_icache_range(start, stop)
+#endif
 
 /* methods.c */
 extern void		node_methods_init( void );
diff --git a/arch/ppc/qemu/kernel.h b/arch/ppc/qemu/kernel.h
index d4d10f2..d15f24f 100644
--- a/arch/ppc/qemu/kernel.h
+++ b/arch/ppc/qemu/kernel.h
@@ -20,9 +20,13 @@ extern void		fatal_error( const char *str );
 extern void		exit( int status );
 
 /* start.S */
+#ifndef FCOMPILER
 extern void 		flush_icache_range( char *start, char *stop );
 extern char		of_rtas_start[], of_rtas_end[];
 extern void             call_elf( ulong arg1, ulong arg2, ulong elf_entry );
+#else
+#define flush_icache_range(start, stop)
+#endif
 
 /* methods.c */
 extern void		node_methods_init( const char *cpuname );
diff --git a/config/examples/ppc_config.xml b/config/examples/ppc_config.xml
index 87a9964..74ee768 100644
--- a/config/examples/ppc_config.xml
+++ b/config/examples/ppc_config.xml
@@ -35,7 +35,7 @@
   <option name="CONFIG_DEBLOCKER" type="boolean" value="true"/>
   <option name="CONFIG_FONT_8X8" type="boolean" value="true"/>
   <option name="CONFIG_FONT_8X16" type="boolean" value="false"/>
-  <option name="CONFIG_OFMEM" type="boolean" value="true"/>
+  <option name="CONFIG_OFMEM" type="boolean" value="false"/>
   <option name="CONFIG_OFMEM_MALLOC_ALIGN" type="integer" value="4"/>
   <option name="CONFIG_VGA_WIDTH" type="integer" value="800"/>
   <option name="CONFIG_VGA_HEIGHT" type="integer" value="600"/>
-- 
1.5.6.5

