aboutsummaryrefslogtreecommitdiffstats
path: root/diag
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2011-03-27 08:36:19 -0400
committerGene Cumm <gene.cumm@gmail.com>2011-03-27 08:36:19 -0400
commit664d8f66849ede9af30ccba90c9070220c474eb4 (patch)
treeff33c7fa4e44a8558aab75399ec29c8e0f999c53 /diag
parentd583d2fbd6ca3c754de078f04bf5f87566dbda52 (diff)
downloadsyslinux-664d8f66849ede9af30ccba90c9070220c474eb4.tar.gz
syslinux-664d8f66849ede9af30ccba90c9070220c474eb4.tar.xz
syslinux-664d8f66849ede9af30ccba90c9070220c474eb4.zip
diag/mbr/handoff: Add optional printing of floppy descriptor
Diffstat (limited to 'diag')
-rw-r--r--diag/mbr/handoff.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/diag/mbr/handoff.S b/diag/mbr/handoff.S
index 2ac0cccb..7af3fdeb 100644
--- a/diag/mbr/handoff.S
+++ b/diag/mbr/handoff.S
@@ -56,6 +56,7 @@
#define DEBUG_PNP /* Scan for $PnP and show address */
#define DEBUG_PAK /* Press Any Key before boot fail */
// #define DEBUG_ENTRY_REG /* Store (manually as pusha is 80186) registers */
+// #define DEBUG_FDT /* Print the floppy descriptor table; INT 1Eh*/
#ifdef DEBUG_MARKER1
.macro ASCII_MARKER1 s:vararg
@@ -108,6 +109,10 @@ es_bot = (es_ds)
BIOS_page = 0x462
+int_1e = (4*0x1e)
+int_1e_seg = (int_1e)
+int_1e_off = (int_1e+2)
+
.globl _start
_start:
cli
@@ -247,6 +252,27 @@ pr_pnp:
call crlf
pnp_end:
+#ifdef DEBUG_FDT
+ /* INT 1Eh: Floppy Parameter Table Pointer */
+pr_1e: call wrstr
+ .ascii "INT 1Eh: \0"
+ mov $int_1e,%bx
+ les (%bx),%di
+ pushw %es
+ popw %dx
+ call wrhexw
+ movb $':, %al
+ call wrchr
+ pushw %di
+ popw %dx
+ call wrhexw
+ call crlf
+ /* [INT 1Eh] */
+ movw $14, %cx
+ call wrhexbses
+ call crlf
+#endif /* DEBUG_FDT */
+
end:
jmp bootfail