coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
debug.h File Reference
#include <timer.h>
#include <types.h>
#include <console/console.h>
#include "x86emu/x86emu.h"
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define printf(x...)   printk(BIOS_DEBUG, x)
 
#define DEBUG_IO   0x1
 
#define DEBUG_MEM   0x2
 
#define DEBUG_CHECK_VMEM_ACCESS   0x4
 
#define DEBUG_INTR   0x8
 
#define DEBUG_PRINT_INT10   0x10
 
#define DEBUG_VBE   0x20
 
#define DEBUG_PMM   0x40
 
#define DEBUG_DISK   0x80
 
#define DEBUG_PNP   0x100
 
#define DEBUG_TRACE_X86EMU   0x1000
 
#define DEBUG_JMP   0x2000
 
#define CHECK_DBG(_flag)   if (0)
 
#define DEBUG_PRINTF(_x...)
 
#define DEBUG_PRINTF_CS_IP(_x...)
 
#define DEBUG_PRINTF_IO(_x...)
 
#define DEBUG_PRINTF_MEM(_x...)
 
#define DEBUG_PRINTF_INTR(_x...)
 
#define DEBUG_PRINTF_VBE(_x...)
 
#define DEBUG_PRINTF_PMM(_x...)
 
#define DEBUG_PRINTF_DISK(_x...)
 
#define DEBUG_PRINTF_PNP(_x...)
 

Functions

void x86emu_dump_xregs (void)
 
static void clr_ci (void)
 
static void set_ci (void)
 
void dump (u8 *addr, u32 len)
 

Variables

u32 debug_flags
 

Macro Definition Documentation

◆ CHECK_DBG

#define CHECK_DBG (   _flag)    if (0)

Definition at line 118 of file debug.h.

◆ DEBUG_CHECK_VMEM_ACCESS

#define DEBUG_CHECK_VMEM_ACCESS   0x4

Definition at line 82 of file debug.h.

◆ DEBUG_DISK

#define DEBUG_DISK   0x80

Definition at line 87 of file debug.h.

◆ DEBUG_INTR

#define DEBUG_INTR   0x8

Definition at line 83 of file debug.h.

◆ DEBUG_IO

#define DEBUG_IO   0x1

Definition at line 79 of file debug.h.

◆ DEBUG_JMP

#define DEBUG_JMP   0x2000

Definition at line 92 of file debug.h.

◆ DEBUG_MEM

#define DEBUG_MEM   0x2

Definition at line 80 of file debug.h.

◆ DEBUG_PMM

#define DEBUG_PMM   0x40

Definition at line 86 of file debug.h.

◆ DEBUG_PNP

#define DEBUG_PNP   0x100

Definition at line 88 of file debug.h.

◆ DEBUG_PRINT_INT10

#define DEBUG_PRINT_INT10   0x10

Definition at line 84 of file debug.h.

◆ DEBUG_PRINTF

#define DEBUG_PRINTF (   _x...)

Definition at line 120 of file debug.h.

◆ DEBUG_PRINTF_CS_IP

#define DEBUG_PRINTF_CS_IP (   _x...)

Definition at line 121 of file debug.h.

◆ DEBUG_PRINTF_DISK

#define DEBUG_PRINTF_DISK (   _x...)

Definition at line 128 of file debug.h.

◆ DEBUG_PRINTF_INTR

#define DEBUG_PRINTF_INTR (   _x...)

Definition at line 125 of file debug.h.

◆ DEBUG_PRINTF_IO

#define DEBUG_PRINTF_IO (   _x...)

Definition at line 123 of file debug.h.

◆ DEBUG_PRINTF_MEM

#define DEBUG_PRINTF_MEM (   _x...)

Definition at line 124 of file debug.h.

◆ DEBUG_PRINTF_PMM

#define DEBUG_PRINTF_PMM (   _x...)

Definition at line 127 of file debug.h.

◆ DEBUG_PRINTF_PNP

#define DEBUG_PRINTF_PNP (   _x...)

Definition at line 129 of file debug.h.

◆ DEBUG_PRINTF_VBE

#define DEBUG_PRINTF_VBE (   _x...)

Definition at line 126 of file debug.h.

◆ DEBUG_TRACE_X86EMU

#define DEBUG_TRACE_X86EMU   0x1000

Definition at line 90 of file debug.h.

◆ DEBUG_VBE

#define DEBUG_VBE   0x20

Definition at line 85 of file debug.h.

◆ printf

#define printf (   x...)    printk(BIOS_DEBUG, x)

Definition at line 50 of file debug.h.

Function Documentation

◆ clr_ci()

static void clr_ci ( void  )
inlinestatic

Definition at line 54 of file debug.h.

Referenced by biosemu(), biosemu_dev_check_exprom(), dump(), my_rdb(), my_rdl(), my_rdw(), my_wrb(), my_wrl(), and my_wrw().

Here is the caller graph for this function:

◆ dump()

void dump ( u8 addr,
u32  len 
)

Definition at line 40 of file debug.c.

References addr, clr_ci(), printf, set_ci(), and x.

Here is the call graph for this function:

◆ set_ci()

static void set_ci ( void  )
inlinestatic

Definition at line 55 of file debug.h.

Referenced by biosemu(), biosemu_dev_check_exprom(), dump(), my_rdb(), my_rdl(), my_rdw(), my_wrb(), my_wrl(), and my_wrw().

Here is the caller graph for this function:

◆ x86emu_dump_xregs()

void x86emu_dump_xregs ( void  )

Definition at line 398 of file debug.c.

References ACCESS_FLAG, F_AF, F_CF, F_DF, F_IF, F_OF, F_PF, F_SF, F_ZF, M, and printf.

Variable Documentation

◆ debug_flags

u32 debug_flags
extern

Definition at line 37 of file debug.c.

Referenced by biosemu().