[OpenBIOS] r514 - in trunk/openbios-devel: config/examples include

svn at openbios.org svn at openbios.org
Fri Jul 31 13:12:18 CEST 2009


Author: blueswirl
Date: 2009-07-31 13:12:18 +0200 (Fri, 31 Jul 2009)
New Revision: 514

Modified:
   trunk/openbios-devel/config/examples/cross-ppc_config.xml
   trunk/openbios-devel/config/examples/cross-sparc32_config.xml
   trunk/openbios-devel/config/examples/cross-sparc64_config.xml
   trunk/openbios-devel/config/examples/ppc_config.xml
   trunk/openbios-devel/config/examples/sparc32_config.xml
   trunk/openbios-devel/config/examples/sparc64_config.xml
   trunk/openbios-devel/include/ofmem.h
Log:
Introduce CONFIG_DEBUG_OFMEM option (Igor Kovalenko)

Add CONFIG_DEBUG_OFMEM option to configurations which implement OF memory
manager.

Implement DEBUG_OFMEM macro to be used by debug traces in OF memory manager
code.


Modified: trunk/openbios-devel/config/examples/cross-ppc_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/cross-ppc_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/cross-ppc_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -27,6 +27,7 @@
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
   <option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/config/examples/cross-sparc32_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/cross-sparc32_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/cross-sparc32_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -33,6 +33,7 @@
   <option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/config/examples/cross-sparc64_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/cross-sparc64_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/cross-sparc64_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -30,6 +30,7 @@
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
   <option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/config/examples/ppc_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/ppc_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/ppc_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -27,6 +27,7 @@
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
   <option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/config/examples/sparc32_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/sparc32_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/sparc32_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -33,6 +33,7 @@
   <option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/config/examples/sparc64_config.xml
===================================================================
--- trunk/openbios-devel/config/examples/sparc64_config.xml	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/config/examples/sparc64_config.xml	2009-07-31 11:12:18 UTC (rev 514)
@@ -30,6 +30,7 @@
   <option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
   <option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
   <option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
+  <option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
 
 
   <!-- Module Configuration -->

Modified: trunk/openbios-devel/include/ofmem.h
===================================================================
--- trunk/openbios-devel/include/ofmem.h	2009-07-31 11:10:38 UTC (rev 513)
+++ trunk/openbios-devel/include/ofmem.h	2009-07-31 11:12:18 UTC (rev 514)
@@ -58,4 +58,10 @@
 #define PAGE_ALIGN(addr)  (((addr) + PAGE_SIZE - 1) & PAGE_MASK)
 #endif
 
+#if defined(CONFIG_DEBUG_OFMEM)
+# define OFMEM_TRACE(fmt, ...) do { printk("OFMEM: " fmt, ## __VA_ARGS__); } while (0)
+#else
+# define OFMEM_TRACE(fmt, ...) do {} while(0)
+#endif
+
 #endif   /* _H_OFMEM */




More information about the OpenBIOS mailing list