diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-06-12 22:59:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-06-12 22:59:43 -0400 |
commit | 15c1f2207f4d406bb56032cef5920f474f32de88 (patch) | |
tree | 26094bfcb85b116a5786e574ba353bd8e541f84e /src/system.c | |
parent | 2e3eeebc33bcf780912f3b10fb23f82d4f9afb22 (diff) | |
download | seabios-15c1f2207f4d406bb56032cef5920f474f32de88.tar.gz |
Support config driven debugging of each irq handler.
This allows one to easily enable verbose output from handlers.
Diffstat (limited to 'src/system.c')
-rw-r--r-- | src/system.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/system.c b/src/system.c index f3909c16..09415659 100644 --- a/src/system.c +++ b/src/system.c @@ -310,7 +310,7 @@ handle_15XX(struct bregs *regs) void VISIBLE16 handle_15(struct bregs *regs) { - //debug_enter(regs); + debug_enter(regs, DEBUG_HDL_15); switch (regs->ah) { case 0x24: handle_1524(regs); break; case 0x4f: handle_154f(regs); break; @@ -334,7 +334,7 @@ handle_15(struct bregs *regs) void VISIBLE16 handle_12(struct bregs *regs) { - debug_enter(regs); + debug_enter(regs, DEBUG_HDL_12); regs->ax = GET_BDA(mem_size_kb); } @@ -342,7 +342,7 @@ handle_12(struct bregs *regs) void VISIBLE16 handle_11(struct bregs *regs) { - debug_enter(regs); + debug_enter(regs, DEBUG_HDL_11); regs->ax = GET_BDA(equipment_list_flags); } @@ -350,21 +350,21 @@ handle_11(struct bregs *regs) void VISIBLE16 handle_05(struct bregs *regs) { - debug_enter(regs); + debug_enter(regs, DEBUG_HDL_05); } // INT 10h Video Support Service Entry Point void VISIBLE16 handle_10(struct bregs *regs) { - debug_enter(regs); + debug_enter(regs, DEBUG_HDL_10); // dont do anything, since the VGA BIOS handles int10h requests } void VISIBLE16 handle_nmi() { - debug_isr(); + debug_isr(DEBUG_ISR_nmi); BX_PANIC("NMI Handler called\n"); } @@ -372,7 +372,7 @@ handle_nmi() void VISIBLE16 handle_75() { - debug_isr(); + debug_isr(DEBUG_ISR_75); // clear irq13 outb(0, PORT_MATH_CLEAR); |