From: Kevin O'Connor Date: Sun, 26 Oct 2008 16:01:21 +0000 (-0400) Subject: Misc minor cleanups. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=970a03254708272047d2b47229e40dbe16fc47d5;p=seabios.git Misc minor cleanups. --- diff --git a/TODO b/TODO index 6180d5b..94d2465 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,7 @@ cvs tip. * bochs cvs 20081016: -- better post resume support * coreboot (r3348): 20060708 -- no noteworthy enhancements * qemu (r5536): 20080603 -- has cmos smp count - * kvm (45a442c): 20071016 -- acpi dsdt changes, e820 vmx + * kvm (1a33292): 20071016 -- acpi dsdt changes, e820 vmx pages, setup mtrrs, clear tsc, acpi intsrcovr table, different pci irqs, smbios always uses 16 cpus, no acpi ssdt, fadt->gpe0_blk set * virtualbox (r13560): 20061231 -- lots of mouse changes, logo, diff --git a/src/ata.c b/src/ata.c index ffc410f..f245e21 100644 --- a/src/ata.c +++ b/src/ata.c @@ -578,7 +578,7 @@ get_ata_version(u8 *buffer) static void init_drive_atapi(int driveid) { - SET_EBDA(ata.devices[driveid].type,ATA_TYPE_ATAPI); + SET_EBDA(ata.devices[driveid].type, ATA_TYPE_ATAPI); // Temporary values to do the transfer SET_EBDA(ata.devices[driveid].device,ATA_DEVICE_CDROM); @@ -821,7 +821,7 @@ init_drive_ata(int driveid) static void init_drive_unknown(int driveid) { - SET_EBDA(ata.devices[driveid].type,ATA_TYPE_UNKNOWN); + SET_EBDA(ata.devices[driveid].type, ATA_TYPE_UNKNOWN); u8 channel = driveid / 2; u8 slave = driveid % 2; diff --git a/src/disk.c b/src/disk.c index 84b452f..23501ff 100644 --- a/src/disk.c +++ b/src/disk.c @@ -487,7 +487,7 @@ disk_1348(struct bregs *regs, u8 device) SET_INT13DPT(regs, iface_type[6], 0); SET_INT13DPT(regs, iface_type[7], 0); - SET_INT13DPT(regs, device_path, device%2); + SET_INT13DPT(regs, device_path, slave); SET_INT13DPT(regs, checksum, -checksum(MAKE_FARPTR(regs->ds, 30), 35)); diff --git a/tools/checkstack.py b/tools/checkstack.py index 680c033..8eafa97 100755 --- a/tools/checkstack.py +++ b/tools/checkstack.py @@ -13,8 +13,8 @@ import sys import re # List of functions we can assume are never called. -#IGNORE = ['screenc', 'BX_PANIC', '__dprintf'] -IGNORE = ['screenc', 'BX_PANIC'] +#IGNORE = ['BX_PANIC', '__dprintf'] +IGNORE = ['BX_PANIC'] # Find out maximum stack usage for a function def calcmaxstack(funcs, funcaddr):