Standardised debug mechanism in place now.

This commit is contained in:
Michael Brown
2005-04-14 11:55:57 +00:00
parent e44e5c7247
commit 44c7cc8c12
10 changed files with 14 additions and 70 deletions

View File

@@ -18,13 +18,6 @@
#include "realmode.h"
#endif
#undef DBG
#ifdef DEBUG_PCI_IO
#define DBG(...) printf ( __VA_ARGS__ )
#else
#define DBG(...)
#endif
/* Macros for direct PCI access */
#define CONFIG_ADDRESS 0xcf8
#define CONFIG_DATA 0xcfc

View File

@@ -8,12 +8,6 @@
#include "pic8259.h"
#include "realmode.h"
#ifdef DEBUG_IRQ
#define DBG(...) printf ( __VA_ARGS__ )
#else
#define DBG(...)
#endif
/* State of trivial IRQ handler */
irq_t trivial_irq_installed_on = IRQ_NONE;
static uint16_t trivial_irq_previous_trigger_count = 0;

View File

@@ -42,13 +42,6 @@ extern char _end[];
extern struct post_reloc_fn post_reloc_fns[];
extern struct post_reloc_fn post_reloc_fns_end[];
#undef DBG
#ifdef DEBUG_RELOCATE
#define DBG(...) printf ( __VA_ARGS__ )
#else
#define DBG(...)
#endif
static void relocate ( void ) {
unsigned long addr, eaddr, size;
unsigned i;