memdisk: install a DPT if needed in INT 1Eh; better zero-drive detection
commit8e5db045c60ce25a9eb65a1803d47be4002a3e17
authorH. Peter Anvin <hpa@zytor.com>
Thu, 3 Jul 2008 22:22:39 +0000 (3 15:22 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 3 Jul 2008 22:22:39 +0000 (3 15:22 -0700)
tree8972e976d9dcf866cbbe2f10950d3699aacdd171
parentb941fb60dcf169bea3769466238a63b7eb15d739
memdisk: install a DPT if needed in INT 1Eh; better zero-drive detection

Per the Interrupt list, treat INT 13 08 returning with CL=0 as a
failure, meaning single drive only.

If we find ourselves the only floppy drive, install a DPT into INT
1Eh.  This appears to be needed for PC-DOS 7.0 to boot.  This can be
overridden with the "nodpt" option, and forced with the "dpt" option.
memdisk/memdisk.asm
memdisk/memdisk.h
memdisk/setup.c