aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* com32/lib: add cast in __parse_argv()H. Peter Anvin2010-01-101-1/+1
| | | | | | | | | ALIGN_UP_FOR() returns the type of the original pointer, but we want it to be the type that we're actually going to use. Perhaps ALIGN_UP_FOR() should be changed, but for now, just add the proper cast. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* libgcc: fix signedness warning in __moddi3()H. Peter Anvin2010-01-101-1/+1
| | | | | | Intentional cross-signedness pointer passing, add a cast. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix unused argument warning in fdopendir()H. Peter Anvin2010-01-101-0/+2
| | | | | | fdopendir() is a stub, and probably will remain such. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix unused parameter warning in chdir()H. Peter Anvin2010-01-101-0/+4
| | | | | | chdir() is a stub at the moment... to be fixed in Syslinux 4. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix warning in str*cmp()H. Peter Anvin2010-01-104-4/+8
| | | | | | Shut up a warning about initializing pointer across signedness. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32/lib: fix warnings in opendir/readdir/closedirH. Peter Anvin2010-01-103-1/+6
| | | | | | Missing #include <stdlib.h>, nested comment in readdir. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefile: replace -W -Wall with centralized $(GCCWARN)H. Peter Anvin2010-01-103-6/+6
| | | | | | | | | Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN), a centralized variable defined in the root MCONFIG. Add -Wstrict-prototypes to the list of global warnings: we should never have non-prototyped declarations. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* cmenu: clean up some () that should be (void)H. Peter Anvin2010-01-103-4/+4
| | | | | | | () is not a prototype, and means (...) not (void) in C. Replace with (void). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: simplify the grub4dos supportH. Peter Anvin2010-01-101-13/+9
| | | | | | | Grub4dos (like Grub in general) uses the same partition numbers as Linux (and chain.c32), minus one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: add grldr= command for Grub4dosKim Mik2010-01-101-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | grldr of Grub4dos wants the partition number in DH: 0xff: whole drive 0-3: primary partitions 4-*: logical partitions Hmmm... there really isn't a huge reason not to do this unconditionally, at least unless it's known to cause problems. It would be better, of course, if grldr used the standard DS:SI, but it doesn't, so oh well. Some info of a Grub4dos developer (Tinybit): GRLDR can be loaded at any address with alignment 16(i.e., a possible segment base address). Generally you want to load it at 0000:7C00, or at 2000:0000. Of course you never load it at 0000:0000 or similar. Before jumping to the entry point at the very beginning of GRLDR, you should setup DL=(BIOS drive) and DH=(partition number). For partition numbers, 0 - 3 are primary, 4 - 0xFE are logical. (DH=0xFF) stands for whole drive(unpartitioned). DH will later be passed to install_partition(the third byte, from bit 16 to bit 23). http://www.boot-land.net/forums/index.php?showtopic=8457&st=20&start=20 post #22
* Change () prototypes to (void)H. Peter Anvin2010-01-0612-38/+48
| | | | | | | | () means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: stylistic comments/usage output changesKim Mik2009-12-281-2/+2
| | | | | | | | | Comments fix and usage output corrected for chain.c32 - Gert Hulselmans Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge commit 'sherbszt/gfxboot32'syslinux-3.85-pre1H. Peter Anvin2009-12-283-5/+12
|\
| * gfxboot: fix loading of LABELs with non KERNEL or LINUX commandsSebastian Herbszt2009-12-081-1/+6
| | | | | | | | | | | | Call syslinux_run_command() if menu_ptr->kernel or menu_ptr->linux are not set. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * gfxboot: accept plain boot logo filesSebastian Herbszt2009-12-081-1/+3
| | | | | | | | | | | | Don't force the boot logo file to be a cpio archive. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * gfxboot: fix typo in cb_getcwd - wrong function numberSebastian Herbszt2009-12-051-1/+1
| | | | | | | | | | | | Use function number 1fh in cb_getcwd. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * gfxboot: use $(NASM) and $(OBJCOPY)Sebastian Herbszt2009-12-051-2/+2
| | | | | | | | | | | | Use $(NASM) and $(OBJCOPY) in Makefile. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: add .gitignore fileH. Peter Anvin2009-12-281-0/+1
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | chain.c: do a proper copy operation for the cmldr signatureH. Peter Anvin2009-12-281-9/+14
| | | | | | | | | | | | | | Instead of writing into memory that we might not own, create a proper copy operation using syslinux_add_movelist(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | chain.c32: add support for booting the Recovery Console of Windows NT/2K/XPKim Mik2009-12-281-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch for chain.c32 adds support to boot the Recovery Console of Windows NT/2K/XP. Normally when you want to boot the recovery console, you need to patch "cmdcons\0" into the bootsectorof the partition (8 bytes starting at 0x3 (4th byte)). We can do this patching in memory: strcpy((char *) 0x7c03, "cmdcons"); To boot the recovery console with chain.c32: chain.c32 cmldr=/cmldr - Gert Hulselmans
* | chain.c32: fixing implicit declaration of function ↵Kim Mik2009-12-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ‘syslinux_force_text_mode’ When building chain.c32: $ make chain.c32 gcc -Wp,-MT,chain.o,-MD,./..chain.o.d -std=gnu99 -m32 -fno-stack-protector -mregparm=3 -DREGPARM=3 -march=i386 -Os -W -Wall -march=i386 -fomit-frame-pointer -D__COM32__ -nostdinc -iwithprefix include -I../../com32/libutil/include -I../../com32/include -I../../com32/gplinclude -c -o chain.o chain.c chain.c: In function ‘do_boot’: chain.c:552: warning: implicit declaration of function ‘syslinux_force_text_mode’ ld -m elf_i386 -T ../../com32/lib/com32.ld -o chain.elf chain.o ../../com32/libutil/libutil_com.a ../../com32/gpllib/libcom32gpl.a ../../com32/lib/libcom32.a /usr/lib/gcc/i486-linux-gnu/4.4.1/libgcc.a objcopy -O binary chain.elf chain.c32 The following was missing: #include <syslinux/video.h> - Gert Hulselmans
* | com32: syslinux_report_video_mode returns voidH. Peter Anvin2009-12-222-2/+2
| | | | | | | | | | | | | | syslinux_report_video_mode() never gave a return value, to have it return void unless we need something else. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | vesa: formatting fixH. Peter Anvin2009-12-221-1/+1
| | | | | | | | | | | | Code formatting fix in screencpy.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | vesamenu: unbreak the default backgroundH. Peter Anvin2009-12-221-4/+11
| | | | | | | | | | | | Unbreak the default background image; it would clobber all of memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | chain.c32: force text modeH. Peter Anvin2009-12-181-0/+3
| | | | | | | | | | | | When loading an unknown system, revert to text mode first. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | video: implement long-promised video functions; use themH. Peter Anvin2009-12-186-14/+153
| | | | | | | | | | | | | | | | Implement long-since-promised video functions defined in <syslinux/video.h>. Use these functions in initvesa.c instead of open-coding the same functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | vesacon: don't display the cursor when doing a quiet bootH. Peter Anvin2009-12-0710-8/+35
| | | | | | | | | | | | | | | | | | Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'softres'H. Peter Anvin2009-12-0721-554/+796
|\ \
| * | vesamenu: add MENU RESOLUTION to be able to set nonstandard resH. Peter Anvin2009-12-075-11/+30
| | | | | | | | | | | | | | | | | | | | | | | | Add a MENU RESOLUTION command to make it possible to set a nonstandard resolution. If the nonstandard resolution is unavailable, we revert to the text mode screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | vesacon: make it possible to request nonstandard resolutionsH. Peter Anvin2009-12-072-1/+16
| | | | | | | | | | | | | | | | | | | | | Make it possible to request nonstandard resolutions when enabling vesacon. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | vesacon: not all JPEG images are JFIFH. Peter Anvin2009-12-071-2/+1
| | | | | | | | | | | | | | | | | | | | | There are a fair number of valid JPEG images which we can validly decode that aren't JFIF-complient, so don't require the JFIF header. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | jpeg: actually build yuv420pH. Peter Anvin2009-08-091-1/+1
| | | | | | | | | | | | | | | | | | Actually build the yuv420p converter again. Signed-off-by: H. Peter Anvin <hpa@zytor.com>