summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gfxboot: increase bss alignment to 4Ksyslinux-3.80-pre6H. Peter Anvin2009-05-011-1/+1
| | | | | | | | Increase the bss alignment (and therefore the alignment of buffers) to 4K rather than 512 bytes -- this in anticipation of future hard disks with 4K sectors. This only changes the actual bss location by 1.5K. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* gfxboot: align buffers and move them into bssH. Peter Anvin2009-05-012-44/+65
| | | | | | | | | Align I/O buffers to a multiple of 512 bytes, as required by the Syslinux ABI. Furthermore, move them from data to bss, so that they don't occupy space in the image file. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Acked-by: Sebastian Herbszt <herbszt@gmx.de>
* NEWS: document isohybrid fixH. Peter Anvin2009-05-011-0/+1
|
* isohybrid: preserve MBR id in isohybridPascal Terjan2009-05-011-6/+8
| | | | | | | | | | When running isohybrid again it's nice to preserve the MBR id There was some partial code to support setting the id using non existing to_int, but no way to use it. Signed-off-by: Pascal Terjan <pterjan@mandriva.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* isohybrid: support iso images over 2GBPascal Terjan2009-05-011-2/+1
| | | | | | | | "use integer" limits integers to 2^31-1 on 32 bits, which makes imgsize to be -1 on DVD images Signed-off-by: Pascal Terjan <pterjan@mandriva.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Document boot-once fix.H. Peter Anvin2009-04-301-0/+1
|
* ADV: EDD "write with verify" is AL=01h or AL=02h, not AL=80hH. Peter Anvin2009-04-301-1/+1
| | | | | | | | | | The "write with verify" functionality in EDD is AL=01h or AL=02h depending on EDD version, not AL=80h. Since it is apparently version-dependent, don't even try to do it; furthermore, some BIOSes are known to reject a write with this feature requested no matter what. At some point we may want to explicitly read back to verify. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* cmenu: add .gitignore fileH. Peter Anvin2009-04-301-0/+2
| | | | | | Add .gitignore file for .c files created from .menu files. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: disable DEBUGH. Peter Anvin2009-04-301-1/+1
| | | | | | | | Disable DEBUG in mboot.c32, which was accidentally enabled in a previous commit. Reported-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NEWS: updateH. Peter Anvin2009-04-291-0/+2
|
* linux.c32: move handling of mem= and vga= into the library functionsyslinux-3.80-pre5H. Peter Anvin2009-04-294-78/+99
| | | | | | | Move the handling of mem= and vga= into syslinux_boot_linux(), so that the user of that function doesn't need to worry about it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: make localboot another vkernel typesyslinux-3.80-pre4H. Peter Anvin2009-04-293-25/+11
| | | | | | | | | Change "localboot" to be another vkernel type. It still needs some special treatment (because it doesn't take a filename), but overall this makes it a lot cleaner than what it was before. It should also avoid the problem of empty labels (e.g. menu quit) doing weird things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* shuffle_pm: remove unused variables and includesH. Peter Anvin2009-04-281-7/+1
| | | | | | | Remove unused variables and #include statements from syslinux_shuffle_boot_pm(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: use the contents of the ebda_seg, not the pointer itselfH. Peter Anvin2009-04-281-1/+1
| | | | | | Use the contents of the ebda_seg variable, not the address... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: silence warningH. Peter Anvin2009-04-281-0/+1
| | | | | | Silence warning of unused argc. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Makefile: drop references to "make depend"syslinux-3.80-pre3H. Peter Anvin2009-04-282-7/+1
| | | | | | We no longer need "make depend" for anything. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: include module filenames in the command lineH. Peter Anvin2009-04-281-1/+4
| | | | | | | Grub includes the kernel and module filenames in the command lines it passes, so match that behavior and don't strip them off. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix NASM dependency generationH. Peter Anvin2009-04-275-6/+6
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-279-84/+41
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: com32/lib, com32/cmenuH. Peter Anvin2009-04-273-18/+19
| | | | | | Add the unified dependency generation to com32/lib and com32/cmenu. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-2710-48/+46
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* rllpack: make all pointers 32 bits widesyslinux-3.80-pre2H. Peter Anvin2009-04-273-12/+9
| | | | | | | | The messing around with partial pointers for rllpack/rllunpack turned out to be a source of bugs. Instead, have all the values be 32 bits wide, and require the callers to pass them accordingly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: correctly handle the DOS memory fallback caseH. Peter Anvin2009-04-271-4/+4
| | | | | | Actually (try to) handle the case of finding the DOS memory amount. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* bcopyxx: clear all flags before jumping to the successor codeH. Peter Anvin2009-04-271-6/+10
| | | | | | | | | | Clear the flags register while we still have a stack to do so. This makes the state in the target OS more predictable. It's worth noting that none of the instructions we use in either the PM or RM trampolines change the flags, either (except the IF setting in the RM trampoline, but that is intentional.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* bcopyxx: align the relocated code to a 16-byte boundaryH. Peter Anvin2009-04-271-2/+4
| | | | | | | Align the relocated bcopyxx code to a 16-byte boundary. There are CPUs which have errata relating to GDTs which are not 16-byte aligned. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: add header guards; use <inttypes.h>; formatting changesH. Peter Anvin2009-04-272-46/+36
| | | | | | | Reformat the mboot header files slightly, use <inttypes.h> types, and add header inclusion guards. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot/solaris.c: fix failure case; correct copyright noticeH. Peter Anvin2009-04-271-5/+6
| | | | Better handling of failed mapping; correct copyright notice.
* mboot: reimplement the Solaris DHCP hack, add compliant a.out modesyslinux-3.80-pre1H. Peter Anvin2009-04-265-6/+83
| | | | | | | | | | | | | Reimplement the Solaris DHCP information passing hack. Add a spec-compliant mode for the "a.out kludge". The spec is pretty clear that the bit should override the ELF header (after all, otherwise there wouldn't be any need for the bit), but Grub disagrees. We default to Grub-compliant mode, as Solaris seems to set the bit even though it's an ELF kernel, but add the option to enable spec-compliant mode, as apparently some versions of FreeBSD need it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NEWS: add updates for 3.80H. Peter Anvin2009-04-261-0/+4
|
* Merge branch 'syslinux-3.7x'H. Peter Anvin2009-04-261-0/+4
|\ | | | | | | | | Conflicts: version
| * NEWS, version: prepare for a 3.76 releasesyslinux-3.76-pre1syslinux-3.7xH. Peter Anvin2009-04-252-1/+5
| |
* | Remove the old mboot modulenew-mbootH. Peter Anvin2009-04-266-1631/+3
| |
* | mboot: fix cmdline; a few more layout tweaksH. Peter Anvin2009-04-264-30/+38
| | | | | | | | | | | | | | | | | | | | Fix module command lines (it was overwriting the main kernel command line); a few minor layout tweaks. In particular, we require the section header to be page-aligned, but not the subsequent sections. With this, I can get Xen to boot. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | mboot: skip --- marker; decompress all filesH. Peter Anvin2009-04-261-7/+5
| | | | | | | | | | | | | | | | | | When walking the argument list we need to skip --- markers. Grub, and the old mboot.c32, seem to transparently decompress all files, not just the main one, so do the same. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | mboot: make sure we actually succeed when we finishedH. Peter Anvin2009-04-262-18/+44
| | | | | | | | | | | | | | When we actually finished mapping the image, return 0 and don't bail. Add error messages to most failure cases. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32/MCONFIG: generate dependency files by defaultH. Peter Anvin2009-04-261-2/+4
| | | | | | | | | | | | | | Generate the dependency files by default. They should perhaps even move into the actual rule lines. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | mboot: set up a stack even though the spec doesn't require itH. Peter Anvin2009-04-261-0/+18
| | | | | | | | | | | | | | Set up a stack for the Multiboot OS even though it is not required by spec. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | First attempt at a rewritten mboot moduleH. Peter Anvin2009-04-269-1/+1228
| | | | | | | | | | | | | | First attempt at rewriting the mboot module to use the Syslinux shuffle APIs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'syslinux-3.7x'H. Peter Anvin2009-04-251-0/+2
|\ \ | |/
| * ISOLINUX: set directory length correctlySteffen Winterfeldt2009-04-251-0/+2
| | | | | | | | | | | | Since searchdir() uses getfssec() to read the directory it needs to set file_bytesleft. Else it loops forever if you have a large directory (and/or rock ridge on).
* | pxelinux: fix minor bugsH. Peter Anvin2009-04-241-4/+2
| | | | | | | | | | | | Fix minor bugs reported by pfranz73@tiscali.it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | shuffle_rm: clean up the trampoline generator with macrosH. Peter Anvin2009-04-231-31/+50
| | | | | | | | | | | | | | Define macros for common constructs to clean up the rm trampoline generator. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | shuffle_rm: set up SS:ESP and segs as quickly as possibleH. Peter Anvin2009-04-231-13/+40
| | | | | | | | | | | | | | For extra paranoia's sake, set up SS:ESP immediately after the real-mode switch, and then set all the segment registers. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | hdt: fix conflictErwan Velu2009-04-231-24/+0
| | | | | | | | | | | | Impact: making build working again A forgoten conflict
* | Merge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux ↵Erwan Velu2009-04-2347-1486/+844
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into mainline Conflicts: com32/hdt/hdt-cli-pci.c com32/hdt/hdt-cli-vesa.c com32/hdt/hdt-common.c com32/hdt/hdt-menu-dmi.c
| * | a20: advance A20Test by a large, prime numberH. Peter Anvin2009-04-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Rather than simply incrementing A20Test, advance it by a large prime number every time. The reason is to minimize false aliasing as quickly as possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | a20: remove DO_WBINVD configurableH. Peter Anvin2009-04-213-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | We haven't enabled DO_WBINVD for a very long time. A20 is implemented on the inside of the L1 cache for 486+ (and 386 didn't have WBINVD), so an I/O delay is the only thing we can rely on anyway. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | a20: inline io_delayH. Peter Anvin2009-04-211-4/+3
| | | | | | | | | | | | | | | | | | | | | The io_delay operation is only two instructions, might as well inline it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | a20: A20Test is now a dwordH. Peter Anvin2009-04-211-2/+3
| | | | | | | | | | | | | | | | | | | | | A20Test is now a dword; this makes it less likely that we'll have a case of false aliasing resulting in the io_delay path being taken. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | a20: try to avoid io_delay if A20 is already enabledH. Peter Anvin2009-04-211-25/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have at least the possibility to avoid io_delay if A20 is already enabled. Thus, give it a try. Furthermore, when calling enable_a20, always try the zero-work case first, since we may have been enabled by a previous call. This should improve performance of the rm/pm ping-pong. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>