aboutsummaryrefslogtreecommitdiffstats
path: root/memdisk
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-01-26 20:59:04 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-01-26 21:00:22 -0500
commit91eae94265d72da0b6c57517f6d0dc05649e10cc (patch)
treea45705ea13a33b851619eb71357d319ba6e66811 /memdisk
parent61df6e617c2d755ef8cac91c8c4b9bc2710b2bee (diff)
downloadsyslinux-91eae94265d72da0b6c57517f6d0dc05649e10cc.tar.gz
syslinux-91eae94265d72da0b6c57517f6d0dc05649e10cc.tar.xz
syslinux-91eae94265d72da0b6c57517f6d0dc05649e10cc.zip
memdisk/dskprobe: Increase the debug output
Include all registers that should include anything of value and display the value of the "present" variable.
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/dskprobe.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/memdisk/dskprobe.c b/memdisk/dskprobe.c
index ee7be12d..9071fb0b 100644
--- a/memdisk/dskprobe.c
+++ b/memdisk/dskprobe.c
@@ -58,7 +58,8 @@ static int probe_int13h_08h(uint8_t drive, com32sys_t * regs)
memset(regs, 0, sizeof *regs);
probe_any(0x08, drive, regs);
present = !(regs->eflags.l & 1) && !regs->eax.b[1];
- dskprobe_printf(" AH08: CF%d BL%02x DL%02x\n", regs->eflags.l & 1,
+ dskprobe_printf(" AH08: P%d CF%d AH%02x AL%02x BL%02x DL%02x\n", present,
+ regs->eflags.l & 1, regs->eax.b[1], regs->eax.b[0],
regs->ebx.b[0], regs->edx.b[0]);
return present;
}
@@ -73,8 +74,9 @@ static int probe_int13h_15h(uint8_t drive, com32sys_t * regs)
memset(regs, 0, sizeof *regs);
probe_any(0x15, drive, regs);
present = !(regs->eflags.l & 1) && regs->eax.b[1];
- dskprobe_printf(" AH15: CF%d AH%02x\n", regs->eflags.l & 1,
- regs->eax.b[1]);
+ dskprobe_printf(" AH15: P%d CF%d AH%02x AL%02x CX%04x DX%04x\n", present,
+ regs->eflags.l & 1, regs->eax.b[1], regs->eax.b[0],
+ regs->ecx.w[0], regs->edx.w[0]);
return present;
}
@@ -89,8 +91,9 @@ static int probe_int13h_41h(uint8_t drive, com32sys_t * regs)
regs->ebx.w[0] = 0x55AA; /* BX == 0x55AA */
probe_any(0x41, drive, regs);
present = !(regs->eflags.l & 1) && (regs->ebx.w[0] == 0xAA55);
- dskprobe_printf(" AH41: CF%d BX%04x AH%02x DH%02x\n", regs->eflags.l & 1,
- regs->ebx.w[0], regs->eax.b[1], regs->edx.b[1]);
+ dskprobe_printf(" AH41: P%d CF%d BX%04x AH%02x DH%02x\n", present,
+ regs->eflags.l & 1, regs->ebx.w[0], regs->eax.b[1],
+ regs->edx.b[1]);
return present;
}