path: root/com32/modules/mboot.c
Commit message (Collapse)AuthorAgeFilesLines
* mboot.c: prefer ELF header over multiboot headersyslinux-3.73-pre6Ralf Ertzinger2008-10-201-63/+57
| | | | | | | | | | If a loaded kernel is in ELF format and contains a multiboot header indicating valid relocation information, prefer the informations from the ELF header. This is in violation of the Multiboot spec, but it's the way GRUB does things and Solaris kernels rely on this behaviour. Signed-of-by: Ralf Ertzinger <ralf@skytale.net> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: add <stdint.h> and <stdbool.h>syslinux-3.73-pre5H. Peter Anvin2008-10-191-0/+2
| | | | | | We need <stdbool.h>; we might as well add <stdint.h> as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: reorganize print messagesH. Peter Anvin2008-10-191-8/+7
| | | | | | Reorganize the mboot.c32 Solaris print messages slightly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: change DHCP_ACK_SIZE to 2048H. Peter Anvin2008-10-191-1/+1
| | | | | | | Change DHCP_ACK_SIZE to 2048 just to prevent some systems from doing stupid things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: add Solaris modeRalf Ertzinger2008-10-191-0/+43
| | | | | | | Add a "Solaris" mode to mboot.c32, which mimics a nonstandard extension to Multiboot used by Solaris' pxeboot program. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: no need to include the ANSI enginesyslinux-3.70-pre24H. Peter Anvin2008-06-241-2/+3
| | | | We don't need the ANSI engine in mboot.c32.
* Drop unnecessary CLD instructions.H. Peter Anvin2008-03-031-3/+3
| | | | | | The EFI ABI spec states that DF=0 on ABI boundaries, and gcc expects this. Assume it is safe to rely upon everywhere; drop unnecessary cld instructions, except on entry and (obviously) after std.
* Standardize format for copyright lines and updateH. Peter Anvin2008-01-161-2/+2
| | | | Update copyright lines and standardize the format.
* Fix building on a 64-bit system without a 32-bit system installedsyslinux-3.52-pre10syslinux-3.52H. Peter Anvin2007-09-241-1/+0
| | | | | A bunch of glibc header files were bogusly included. We should not depend on having a 32-bit glibc installed, since we don't use it.
* Stealth whitespace cleanup.syslinux-3.32-pre8H. Peter Anvin2006-12-121-2/+2
* Patch: Parse append arguments properly in mboot moduleRam Yalamanchili2006-12-121-2/+22
| | | | | | | | | | | | | | | | | | | | Hey guys, I noticed the appended ipappend options end up in the beginning of the cmdline argv[] when mboot is entered. mboot then tries to parse the first argument as the name of the kernel module and promptly fails cuz it can't find "ip=.." or "bootif=...". I'm attaching a patch which basically looks for any arguments in the argv[] array and appends them to the kernel cmdline. The arguments have to be back-to-back to be considered "appened options", so this should be safe enough to not take out-of-place arguments and tack onto the kernel cmdline. Last time i sent in some of the elf section loader patches, i think Peter had trouble importing time. Hopefully it works now. thanks, Ram Yalamanchili
* Be excrutiatingly correct with inline assembly syntaxsyslinux-3.20-pre9H. Peter Anvin2006-05-241-1/+1
| | | | | | | To be absolutely correct, we're supposed to use %* before an indirect branch target, not just *. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c: allow memory addresses as jmp arguments.H. Peter Anvin2006-05-241-2/+2
| | | | | | | jmp in x86 can take a memory argument, and since gcc knows everything that happens all the way up to the jump, allowing it there is safe. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot.c32: fix register constraints bug (more cleanly)Tim Deegan2006-05-241-25/+13
| | | | | | | | Fix register constraints of final jump to kernel entry. When compiled with some GCC versions, mboot.c32 would clobber the kernel load address and try to jump to 0x2badb002. Signed-off-by: Tim Deegan <Tim.Deegan@cl.cam.ac.uk>
* Remove stealth whitespaceH. Peter Anvin2006-03-171-107/+107
* mboot.c32:load ELF segments from the segment headerTim Deegan2006-03-171-4/+60
| | | | | | | | | | Load sections from the ELF section headers as well as the program headers, for kernels which need symbol and debug info but don't ask for them in the program headers. Bump the version number to reflect this change. Signed-off-by: Tim Deegan <Tim.Deegan@cl.cam.ac.uk>
* mboot.c32: clear inputs to BIOS callsTim Deegan2006-03-171-1/+3
| | | | | | Zero the inputs to BIOS calls, to fix two bugs in mboot.c32's E820 mmap code. Signed-off-by: Tim Deegan <Tim.Deegan@cl.cam.ac.uk>
* New Multiboot module; increase command line limit to 1023syslinux-3.08hpa2005-05-081-0/+979