aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* libpci: merge BIOS read and BIOS writeHEADmasterH. Peter Anvin2010-02-206-25/+13
| | | | | | | Save a few bytes by merging the very similar BIOS read and BIOS write functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* i915resolution: use libpci to access PCI config spacesyslinux-3.85-pre13syslinux-3.85H. Peter Anvin2010-02-161-19/+11
| | | | | | | | Use libpci to access PCI config space. This *hopefully* will make it less likely that some old machine hangs when failing to set the requested video mode. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'i915res'H. Peter Anvin2010-02-164-2/+813
|\
| * Merge branch 'master' into i915resH. Peter Anvin2010-02-0828-15/+3735
| |\
| * \ Merge branch 'master' into i915resH. Peter Anvin2010-02-034-11/+33
| |\ \
| * \ \ Merge branch 'master' into i915resH. Peter Anvin2010-01-221-0/+3
| |\ \ \
| * | | | vesa: allow arbitrary resolutions on some Intel chipsetsH. Peter Anvin2010-01-224-2/+813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some code from the tool "915resolution" to allow arbitrary resolutions to be set on some Intel chipsets. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | | chain.c: part_info -> partinfosyslinux-3.85-pre11H. Peter Anvin2010-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | | chain.c32: add option to set hidden sectors; load boot sector for NTLDRH. Peter Anvin2010-02-131-66/+134
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Add an option to update the in-memory version of FAT/NTFS hidden sectors (== partition offset); load the boot sector for NTLDR. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | vesa: for jpg or png images, tile the image across the screenH. Peter Anvin2010-02-081-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we specify a smaller image than the screen size, tile it across the screen rather than leaving a big black box. This may have to be made configurable. Also note that Syslinux currently does not handle the case of an image bleeding off the end of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: quiet gcc warningH. Peter Anvin2010-02-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Null change to quiet a gcc warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: use the same serial receive threshold as the coresyslinux-3.85-pre9H. Peter Anvin2010-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Match the core with regards to the serial receive threshold. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: make ymodem work even on a serial consoleH. Peter Anvin2010-02-073-13/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it possible to do a ymodem transfer even on the port used for a serial console. Furthermore, on a serial console, get the parameters from the serial console information, so port number and speed don't have to be specified. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: don't include final null byte in version fileH. Peter Anvin2010-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We don't want the null byte at the end as part of the version file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: ymodem: actually retransmit a block if we get NAKH. Peter Anvin2010-02-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Incorrectly nested loops, we need to actually retransmit if we get a NAK reply... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: actually make the new backend system worksyslinux-3.85-pre8H. Peter Anvin2010-02-077-57/+72
| | | | | | | | | | | | | | | | | | | | | | | | With these changes, both TFTP and Ymodem seem to actually work. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: change to a two-phase generate/output model, buffer in memoryH. Peter Anvin2010-02-0710-193/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of outputting data as it is generated, buffer it all in memory and then output it all at once. This not only gives us exact size and so on before we start, but turns out to be faster at least for TFTP. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: serial: add missing header fileH. Peter Anvin2010-02-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Missing header file -> warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: be_tftp.c: fix prototypeH. Peter Anvin2010-02-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | The init function now takes an additional length argument. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: *actually* generate the proper version stringH. Peter Anvin2010-02-071-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Make the gen-id.sh script actually do the right thing... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: handle the case of more than one DMI tableH. Peter Anvin2010-02-071-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the offchance a system has more than one valid DMI table, record them all. Also record the address of the signature structure and of the table itself. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: record the sysdump version used to generate a bundleH. Peter Anvin2010-02-072-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | Record the sysdump version used to actually generate a data set. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: dump CPUID informationsyslinux-3.85-pre7H. Peter Anvin2010-02-073-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Dump CPUID information in as generic of a way as is possible, given the ugliness in certain places. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: remove unused variableH. Peter Anvin2010-02-071-1/+0
| | | | | | | | | | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: be more explicit about what we are doingH. Peter Anvin2010-02-064-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Print more information on the console about what is going on. That can help detect problems if we find a machine which hangs on sysdump. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: fix the dumping of the e820 memory informationH. Peter Anvin2010-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Need to advance the pointer... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: fix hacking of the DMI structure addressH. Peter Anvin2010-02-061-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fix the hacking of the DMI structure address, for dmidecode's sake. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: dump memory map informationH. Peter Anvin2010-02-063-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | Dump the memory map information - e820 et al. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: add PCI config space dumpingH. Peter Anvin2010-02-064-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | Dump PCI configuration space. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: add support for dumping DMI tablesH. Peter Anvin2010-02-066-91/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for dumping DMI tables; hopefully in a way that is compatible with dmidecode. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: add back ymodem support; clean up memory dump structureH. Peter Anvin2010-02-0615-275/+325
| | | | | | | | | | | | | | | | | | | | | | | | Now we just need more front ends (information providers)... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: add missing return statement in cpio_writefile()H. Peter Anvin2010-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | cpio_writefile() should return the actual return value... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | pxe: add missing prototype for pxe_dns()H. Peter Anvin2010-02-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | All global functions should have a prototype... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: dump vesa modes, generate usable timestampsH. Peter Anvin2010-02-0612-15/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Dump all the VESA modes; give functional timestamps for the cpio members. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: first working version (can dump lowmem over TFTP)H. Peter Anvin2010-02-068-5/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the infrastructure for sysdump, and enough to make it useful. Sysdump will produce a gzipped cpio archive containing individual data members; for now only a memory dump of lowmem. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | com32: add library function for DNS lookupH. Peter Anvin2010-02-062-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | Add a library function for DNS lookup Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | syslinux/pxe.h use the same type as <com32.h> for a far pointerH. Peter Anvin2010-02-061-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <syslinux/pxe.h> was using segoff16_t, <com32.h> was using far_ptr_t for the same thing -- use the same type so the macros are available for both. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | pxelinux: give our own IP address in the "derivate info" API callH. Peter Anvin2010-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Add our own IP address to the "get derivative-specific info" API call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | | sysdump: port memdump to com32 with the intent of enhancing itH. Peter Anvin2010-02-0610-0/+2652
| |_|/ |/| | | | | | | | | | | | | | Port memdump to com32, with the intent of modifying and enhancing it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | menu: add MENU CLEAR optionH. Peter Anvin2010-02-033-1/+8
| | | | | | | | | | | | | | | | | | Add MENU CLEAR to clear the screen on menu exit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | menu: when running hidden, clear the screen before final bootH. Peter Anvin2010-02-031-5/+17
| | | | | | | | | | | | | | | | | | | | | Clear away the countdown message before actually running the final boot. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | chain.c32: Handle nonlinear logical partitionssyslinux-3.85-pre3H. Peter Anvin2010-01-271-5/+8
| |/ |/| | | | | | | | | | | | | | | | | | | Some partitioning program, including at least parted, apparently create the list of logical partition headers nonlinearly with the partition themselves. Thus, make it a requirement that then fit inside the overall extended partition, but not inside the corresponding sublogical partition. Reported-by: Gert Huselmans <gerth@zytor.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Add support for "vga=current"H. Peter Anvin2010-01-221-0/+3
|/ | | | | | "vga=current" is a user-friendly synonym for "vga=0x0f04". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dmi_processor.c: remove unreachable table valuesH. Peter Anvin2010-01-101-50/+2
| | | | | | A uint8_t can't have values all the way up to 0x12e... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* disk/bootloaders.c: fix bogus const in get_bootloader_string()H. Peter Anvin2010-01-102-2/+2
| | | | | | | get_bootloader_string() takes a mutable first argument; the call chain does have call paths on which this argument will be modified. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* disk/ata.c: fix signedness weirdness in ata_id_c_string()H. Peter Anvin2010-01-101-1/+1
| | | | | | Fix signedness weirdness in ata_id_c_string(), thus killing a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: remove unused variable in syslinux_getadv()H. Peter Anvin2010-01-101-1/+1
| | | | | | Remove unused variable, thus removing a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* zlib: fix warning in crc32.cH. Peter Anvin2010-01-101-1/+1
| | | | | | Fix a signed/unsigned warning in crc32.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix external prototype for __vesacon_open()H. Peter Anvin2010-01-101-1/+1
| | | | | | | The external prototype for __vesacon_open() was incorrect; this is a good example of why external prototypes are bad, incidentally. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix inappropriate & in sys/colortable.cH. Peter Anvin2010-01-101-1/+1
| | | | | | The & is incorrect... not actively harmful, but generates a warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>