aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* PXELINUX: allow filenames up to 251 characters longsyslinux-3.83-pre2H. Peter Anvin2009-07-283-1/+4
| | | | | | At least one users really need this, so be nice and provide it... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge commit 'syslinux-3.83-pre1'H. Peter Anvin2009-07-272-2/+2
|\ | | | | | | | | | | | | Conflicts: com32/modules/chain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * NEWS: document chain.c32 ISOLINUX fix.syslinux-3.83-pre1H. Peter Anvin2009-07-231-0/+1
| |
| * chain.c32: set DL properly when loaded from ISOLINUXH. Peter Anvin2009-07-231-2/+1
| | | | | | | | | | | | | | When loaded from ISOLINUX, we still have a valid boot drive. Set it! This permits the use of chainloaded boot loaders. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | gfxboot: remove obsolete message regarding pxelinux supportSebastian Herbszt2009-07-181-1/+0
| | | | | | | | | | | | PXELINUX is supported by the gfxboot module. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: parse TIMEOUT keywordSebastian Herbszt2009-07-181-2/+73
| | | | | | | | | | | | Parse the TIMEOUT keyword from the config file and pass it to gfxboot core. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: only call gfxboot core if labels are specifiedSebastian Herbszt2009-07-181-0/+9
| | | | | | | | | | | | Only call gfxboot core if labels are specified in the config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: display error message if bootlogo file not foundSebastian Herbszt2009-07-181-0/+9
| | | | | | | | | | | | Display an error message if the user specified bootlogo file is not found. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: change handling of keywordsSebastian Herbszt2009-07-181-23/+34
| | | | | | | | | | | | Makes handling of keywords more flexible. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | dosutil/Makefile: more complete structureH. Peter Anvin2009-07-051-8/+20
| | | | | | | | | | | | More complete and consistent structure for dosutil/Makefile. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dosutil: update mdiskchk, add MakefileH. Peter Anvin2009-07-054-20/+38
| | | | | | | | | | | | | | | | Update mdiskchk and add a Makefile. Note that since this needs OpenWatcom to compile, we still check in the binary file (which is quite small, anyway.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Create a dosutil subdirectory and move mdiskchk thereH. Peter Anvin2009-06-262-0/+0
| | | | | | | | | | | | | | DOS utilities aren't really "samples". Create a dedicated "dosutil" directory, and move mdiskchk there for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | extlinux: remove duplicate "const char *program;"Gilles Espinasse2009-06-191-2/+0
| | | | | | | | Remove redundant declaration.
* | Merge branch 'syslinux-3.8x'H. Peter Anvin2009-06-143-4/+25
|\|
| * NEWS: document chainloading fixH. Peter Anvin2009-06-141-0/+2
| |
| * PXELINUX: when chaining an NBP, restore *all* registersH. Peter Anvin2009-06-141-5/+11
| | | | | | | | | | | | | | | | | | On at least ASUS A8N-E, unless *all* registers are restored to pre-PXE status, localboot doesn't work. We were clobbering DS, ESI and EDX when chainloading an NBP, which meant that localboot wouldn't work in the chainloaded NBP. Fix this. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * bootsect: zero memory above a chainloaded boot sector/NBPH. Peter Anvin2009-06-143-3/+16
| | | | | | | | | | | | | | | | Windows RIS has been reported to make inappropriate use of data found in uninitialized memory. To avoid that, clear memory between a chainloaded boot sector or NBP and Free Base Memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32.h: cleanups, make OFFS_VALID() take the pointer size into accountH. Peter Anvin2009-06-091-9/+20
| | | | | | | | | | | | | | | | Clean up some of the constructs in com32.h, and make OFFS_VALID() take the pointer type into account for the range check -- the whole object needs to fit within the segment. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: don't use the stack before bootstrapH. Peter Anvin2009-06-091-2/+1
| | | | | | | | | | | | | | | | Under some certain circumstances, it might not be safe to use the stack as it was set up, so use a jump instead of a call to invoke the bootstrap. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'syslinux-3.82'H. Peter Anvin2009-06-095-15/+39
|\| | | | | | | | | | | | | Conflicts: com32/menu/menumain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pxelinux: actually stop parsing on a null optionsyslinux-3.82H. Peter Anvin2009-06-091-1/+2
| | | | | | | | | | | | | | Stop the OACK parsing on a null option, even if it isn't the very first option. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pxelinux: revert to using TFTP error 8H. Peter Anvin2009-06-091-1/+2
| | | | | | | | | | | | | | The main reason for ERROR is OACK parsing failure, so revert to using error code 8 (but a fixed text error.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pxelinux: cleaner test for OACK trailing null bytesH. Peter Anvin2009-06-091-9/+9
| | | | | | | | | | | | | | | | | | | | | | Instead of looking for a string of null bytes at the end of the OACK string, simply abort parsing if we run into a null byte where an option is expected; either we are seeing junk at the end of the packet, or we are hopelessly confused about how to make sense of the rest of the packet -- in either case, ignoring is the "liberal" option. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * PXELINUX: handle OACK packets with extra NULs, cleaner TFTP errorsyslinux-3.82-pre5H. Peter Anvin2009-06-082-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are apparently TFTP servers in the field which will send OACK packets with extra NUL bytes appended at the end. If we find an OACK packet where the only thing left at some point during processing is NULs, then just consider the packet processed. We have reported all TFTP protocol errors as "tsize required", which is definitely not true anymore. Change error code to 0 (undefined) and the error string to "TFTP error". When this code gets converted to C we'll do better. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: prevent buggy INT 13h from leaving IF=0syslinux-3.82-pre4H. Peter Anvin2009-06-042-3/+9
| | | | | | | | | | | | | | | | If it can happen for CD-ROM BIOSes, it can probably happen elsewhere, too; make sure we don't leave interrupts disabled after broken INT 13h calls. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * simple menu: make ONTIMEOUT work with MENU HIDDENSergey Vlasov2009-06-042-0/+3
| | | | | | | | | | | | | | | | | | | | | | The command invoked when no keys were pressed for the specified time (ONTIMEOUT) may be different from the menu item initially selected when the menu is displayed (DEFAULT or MENU DEFAULT). Unfortunately, this did not work together with MENU HIDDEN (which is exactly the case when having a separate ONTIMEOUT command makes the most sense). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: additional cleanupsH. Peter Anvin2009-06-076-88/+87
| | | | | | | | | | | | | | | | | | | | | | | | Additional stylistic cleanups. Rename "syscall" to "intcall" (we can't call it __intcall without clashing with com32.h); use macros instead of copying variables to different places with only the type being different. Also, only change the rm/pm jump instructions when actually relocating the code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: add missing memmove.SH. Peter Anvin2009-06-071-0/+139
| | | | | | | | | | | | We need memmove.S in the memdisk directory... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: minor cleanupsH. Peter Anvin2009-06-076-58/+71
| | | | | | | | | | | | | | Minor cleanups to the source base; make die() also print an error message and move die() into conio.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: relocate real-mode code before bootingH. Peter Anvin2009-06-074-43/+115
| | | | | | | | | | | | | | | | | | | | Relocate the real-mode code before booting. This allows the target bootstrap to be loaded at an arbitrary address, not necessarily 0x7c00, and to be almost arbitrarily long. Add some initial infrastructure for other bootstrap addresses, too. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: move rm_args initialization to C code; export rm_sizeH. Peter Anvin2009-06-074-20/+21
| | | | | | | | | | | | | | | | Move the rm_args initialization (and the associated sti) to C code. Export the total size of the real-mode code to the protected-mode code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: set up a limited-size real-mode stackH. Peter Anvin2009-06-071-1/+4
| | | | | | | | | | | | | | Limit the size of the real-mode stack. This should limit the amount of memory needed for a relocated real-mode code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: remove hard-coded assumptions for a specific RM segmentH. Peter Anvin2009-06-073-100/+161
| | | | | | | | | | | | | | | | | | | | Remove some hard-coded assumptions about having an RM segment at a specific location. This should allow us to relocate the RM code once the PM code knows where DOS free memory ends. This in turn allows the PM code to load the boot sector almost anywhere it wants to go in low memory, as is required for 100% compliant El Torito support. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: remove the requirement that CS_BASE < 64KH. Peter Anvin2009-06-071-10/+25
| | | | | | | | | | | | | | | | Remove the requirement that CS_BASE is below 64K, based on its use in the A20 test code. This means it can now be located anywhere in high memory, but it is still a constant. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: move the heap to high memoryH. Peter Anvin2009-06-071-3/+5
| | | | | | | | | | | | | | Instead of using a heap arbitrarily allocated in low memory, move it to a chunk of bss in high memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: don't hard-code 0:7C00 as the entry pointH. Peter Anvin2009-06-072-4/+10
| | | | | | | | | | | | Make it possible for the setup code to override SS:SP and CS:IP. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | memdisk: pass in the address of the real-mode codeH. Peter Anvin2009-06-073-5/+4
| | | | | | | | | | | | | | Pass in the address of the real-mode code instead of hard-coding it in two separate places. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'syslinux-3.8x'H. Peter Anvin2009-05-314-21/+40
|\| | | | | | | | | Conflicts: NEWS
| * bin2hex: actually account for the number of bytes writtensyslinux-3.82-pre3H. Peter Anvin2009-05-311-2/+5
| | | | | | | | | | | | Unlike C, in Perl printf() doesn't return the number of bytes written. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * isohdpfx: actually generate the stack frame isolinux expectssyslinux-3.82-pre2H. Peter Anvin2009-05-311-6/+9
| | | | | | | | | | | | | | | | Actually generate the stack frame isolinux expects. This is not the optimal order, but it appears to be what both earlier and later versions of isolinux expects... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * isolinux: can't clobber edx when dx contains the drive number...H. Peter Anvin2009-05-311-3/+3
| | | | | | | | | | | | Use ebx to hold the upper half of the partition offset, not edx. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * NEWS: add changes since 3.81syslinux-3.82-pre1H. Peter Anvin2009-05-311-0/+6
| |
| * core: when calling abort_check, we're not idleH. Peter Anvin2009-05-311-0/+1
| | | | | | | | | | | | | | When we call abort_check, we're not idle even though we are polling the keyboard. Handle that by calling reset_idle near the top. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * isolinux: bsHidden can't be in data; it is set before checksummingH. Peter Anvin2009-05-311-8/+13
| | | | | | | | | | | | | | We cannot put bsHidden in initializated data, as it is set before we run the global checksumming. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * version: next version will be 3.82H. Peter Anvin2009-05-311-1/+1
| |
| * isolinux: handle systems which disables interrupts in El ToritoH. Peter Anvin2009-05-311-7/+13
| | | | | | | | | | | | | | At least one system has been identified which disables interrupts when El Torito INT 13h is executed. Thus, save/restore IF around INT 13h. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | bin2hex: actually account for the number of bytes writtenH. Peter Anvin2009-05-291-2/+5
| | | | | | | | | | | | Unlike C, in Perl printf() doesn't return the number of bytes written. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Assume the next version will be 3.82H. Peter Anvin2009-05-292-1/+3
| |
* | Add back spaces around ellipses in case statementsH. Peter Anvin2009-05-292-4/+4
| | | | | | | | | | | | | | | | GNU C allows the ellipsis (...) to be used in case statements to indicate a range. However, it requires spaces around it to be valid. Nindent stripped those off, put them back. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Revert "Run Nindent on mbr/adjust.h"H. Peter Anvin2009-05-291-4/+12
| | | | | | | | | | | | | | | | This reverts commit f3ae12c8f7a2af6656c613549555f2b08b2d9708. adjust.h is an assembly file, not C. Signed-off-by: H. Peter Anvin <hpa@zytor.com>