summaryrefslogtreecommitdiff
path: root/memdisk
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-19 16:52:36 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-19 16:52:36 -0800
commitbc7ea9c422f98f969dca78b4736718e3c44edd9b (patch)
tree0f4587c25fb8260511c9b7fb899555ce1510ffbe /memdisk
parentfe7dbcbaec8b5210604f942f322cecf55a37abe0 (diff)
downloadsyslinux-bc7ea9c422f98f969dca78b4736718e3c44edd9b.tar.gz
Whitespace cleanup...syslinux-3.62-pre11
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index b611bbca..829893a7 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -776,7 +776,7 @@ void setup(syscall_t cs_syscall, void *cs_bounce)
regs.eax.b[1] = 0x08;
regs.edx.b[0] = geometry->driveno & 0x80;
syscall(0x13, &regs, &regs);
-
+
if ( regs.eflags.l & 1 ) {
printf("INT 13 08: Failure, assuming this is the only drive\n");
pptr->drivecnt = 0;
@@ -785,19 +785,19 @@ void setup(syscall_t cs_syscall, void *cs_bounce)
regs.edx.b[0], regs.es, regs.edi.w[0]);
pptr->drivecnt = regs.edx.b[0];
}
-
+
/* Compare what INT 13h returned with the appropriate equipment byte */
if ( geometry->driveno & 0x80 ) {
bios_drives = rdz_8(BIOS_HD_COUNT);
} else {
uint8_t equip = rdz_8(BIOS_EQUIP);
-
+
if (equip & 1)
bios_drives = (equip >> 6)+1;
else
bios_drives = 0;
}
-
+
if (pptr->drivecnt > bios_drives) {
printf("BIOS equipment byte says count = %d, go with that\n",
bios_drives);