mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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. git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@514 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
||||||
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
<option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
|
<option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
|
||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
||||||
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
||||||
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
<option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
|
<option name="CONFIG_DEBUG_IOMMU" type="boolean" value="false"/>
|
||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="9600"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
<option name="CONFIG_SERIAL_PORT" type="integer" value="0"/>
|
||||||
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
<option name="CONFIG_SERIAL_SPEED" type="integer" value="115200"/>
|
||||||
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
<option name="CONFIG_DEBUG_CONSOLE_VGA" type="boolean" value="true"/>
|
||||||
|
<option name="CONFIG_DEBUG_OFMEM" type="boolean" value="false"/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Module Configuration -->
|
<!-- Module Configuration -->
|
||||||
|
|||||||
@@ -58,4 +58,10 @@ void *map_io(uint64_t pa, int size);
|
|||||||
#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)
|
#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & PAGE_MASK)
|
||||||
#endif
|
#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 */
|
#endif /* _H_OFMEM */
|
||||||
|
|||||||
Reference in New Issue
Block a user