diff options
Diffstat (limited to 'sys/boot/i386/libi386/bioscd.c')
-rw-r--r-- | sys/boot/i386/libi386/bioscd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/bioscd.c b/sys/boot/i386/libi386/bioscd.c index a6dba0c..a3abf34 100644 --- a/sys/boot/i386/libi386/bioscd.c +++ b/sys/boot/i386/libi386/bioscd.c @@ -117,6 +117,7 @@ bc_bios2unit(int biosdev) int i; DEBUG("looking for bios device 0x%x", biosdev); + printf("looking for bios device 0x%x, nbcinfo=%d\n", biosdev, nbcinfo); for (i = 0; i < nbcinfo; i++) { DEBUG("bc unit %d is BIOS device 0x%x", i, bcinfo[i].bc_unit); if (bcinfo[i].bc_unit == biosdev) @@ -148,6 +149,7 @@ bc_init(void) int bc_add(int biosdev) { + printf("bc_add(%d)\n", biosdev); if (nbcinfo >= MAXBCDEV) return (-1); @@ -159,8 +161,10 @@ bc_add(int biosdev) v86.ds = VTOPSEG(&bcinfo[nbcinfo].bc_sp); v86.esi = VTOPOFF(&bcinfo[nbcinfo].bc_sp); v86int(); - if ((v86.eax & 0xff00) != 0) + if ((v86.eax & 0xff00) != 0) { + printf("CD probe failed, eax=0x%08x\n", v86.eax); return (-1); + } printf("BIOS CD is cd%d\n", nbcinfo); nbcinfo++; |