http://git.etherboot.org
/
people
/
indolent
/
gpxe.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b3e44a2
)
Dump first 64 bytes of chained ISR when debugging is enabled.
author
Michael Brown
<mcb30@etherboot.org>
Tue, 10 Jul 2007 15:57:55 +0000
(16:57 +0100)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 10 Jul 2007 15:57:55 +0000
(16:57 +0100)
src/arch/i386/interface/pcbios/biosint.c
patch
|
blob
|
history
diff --git
a/src/arch/i386/interface/pcbios/biosint.c
b/src/arch/i386/interface/pcbios/biosint.c
index
5a48f04
..
8ef2d7a
100644
(file)
--- a/
src/arch/i386/interface/pcbios/biosint.c
+++ b/
src/arch/i386/interface/pcbios/biosint.c
@@
-51,6
+51,12
@@
void hook_bios_interrupt ( unsigned int interrupt, unsigned int handler,
sizeof ( *chain_vector ) );
DBG ( "...chaining to %04x:%04x\n",
chain_vector->segment, chain_vector->offset );
+ if ( DBG_LOG ) {
+ char code[64];
+ copy_from_real ( code, chain_vector->segment,
+ chain_vector->offset, sizeof ( code ) );
+ DBG_HDA ( *chain_vector, code, sizeof ( code ) );
+ }
copy_to_real ( 0, ( interrupt * 4 ), &vector, sizeof ( vector ) );
hooked_bios_interrupts++;