aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* Run Nindent on com32/gplinclude/dmi/dmi_bios.hH. Peter Anvin2009-05-291-56/+56
| | | | | | | | | Automatically reformat com32/gplinclude/dmi/dmi_bios.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gplinclude/dmi/dmi_battery.hH. Peter Anvin2009-05-291-16/+16
| | | | | | | | | Automatically reformat com32/gplinclude/dmi/dmi_battery.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gplinclude/dmi/dmi_base_board.hH. Peter Anvin2009-05-291-15/+15
| | | | | | | | | Automatically reformat com32/gplinclude/dmi/dmi_base_board.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gplinclude/dmi/dmi.hH. Peter Anvin2009-05-291-34/+31
| | | | | | | | | Automatically reformat com32/gplinclude/dmi/dmi.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gplinclude/cpuid.hH. Peter Anvin2009-05-291-113/+111
| | | | | | | | | Automatically reformat com32/gplinclude/cpuid.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gdbstub/serial.hH. Peter Anvin2009-05-291-3/+3
| | | | | | | | | Automatically reformat com32/gdbstub/serial.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gdbstub/serial.cH. Peter Anvin2009-05-291-81/+84
| | | | | | | | | Automatically reformat com32/gdbstub/serial.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gdbstub/main.cH. Peter Anvin2009-05-291-31/+25
| | | | | | | | | Automatically reformat com32/gdbstub/main.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/gdbstub/gdbstub.cH. Peter Anvin2009-05-291-387/+427
| | | | | | | | | Automatically reformat com32/gdbstub/gdbstub.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/simple.cH. Peter Anvin2009-05-291-47/+50
| | | | | | | | | Automatically reformat com32/cmenu/simple.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/tui.hH. Peter Anvin2009-05-291-14/+13
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/tui.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/tui.cH. Peter Anvin2009-05-291-258/+292
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/tui.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/syslnx.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/syslnx.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/syslnx.cH. Peter Anvin2009-05-291-48/+53
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/syslnx.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/scancodes.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/scancodes.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/passwords.hH. Peter Anvin2009-05-291-8/+8
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/passwords.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/passwords.cH. Peter Anvin2009-05-291-90/+109
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/passwords.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/menu.hH. Peter Anvin2009-05-291-121/+129
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/menu.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/menu.cH. Peter Anvin2009-05-291-982/+1070
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/menu.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/help.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/help.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/help.cH. Peter Anvin2009-05-291-150/+171
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/help.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/des.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/des.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/des.cH. Peter Anvin2009-05-291-825/+789
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/des.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/com32io.hH. Peter Anvin2009-05-291-30/+31
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/com32io.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/libmenu/com32io.cH. Peter Anvin2009-05-291-64/+66
| | | | | | | | | Automatically reformat com32/cmenu/libmenu/com32io.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/display.cH. Peter Anvin2009-05-291-9/+8
| | | | | | | | | Automatically reformat com32/cmenu/display.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/cmenu/complex.cH. Peter Anvin2009-05-291-326/+348
| | | | | | | | | Automatically reformat com32/cmenu/complex.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: add dependency on com32.ld -> *.elfsyslinux-3.81-pre13H. Peter Anvin2009-05-251-3/+4
| | | | | | All the *.elf files depend on com32.ld, so make that explicit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Don't set the autocr flag on the serial console; clean up crapsyslinux-3.81-pre12H. Peter Anvin2009-05-235-45/+6
| | | | | | | | | | | | | libutil would set the autocr flag on the serial console, which really never was any point -- we already do \n -> \r\n conversion explicitly in the serial code. This was always very annoying to deal with if the menu was interrupted. Furthermore, drop completely unnecessary initialization/deinitialization routines that completely duplicated other code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Drop support for ACPI 3 E820 extended memory attributesH. Peter Anvin2009-05-212-18/+0
| | | | | | | | | | | | | | Drop all support for ACPI 3 E820 extended memory attributes. There are BIOSes in the field that report completely bogus information here, resulting in no memory at all being detected (we then fall back to E801 detection, but that is problematic in its own ways.) There is strong reasons to believe at this point that the extended memory attributes are not usable in their current form, so drop them and revert back to simple 20-byte support, including for MEMDISK spoofing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* chain.c32: remove clobber of drivename/partitionH. Peter Anvin2009-05-211-3/+0
| | | | | | | | Remove a clobber of drivename and partition, after we have spent time computing what the should have been... Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* meminfo: distinguish between no flags and flags=1syslinux-3.81-pre7H. Peter Anvin2009-05-201-5/+10
| | | | | | | For debugging reasons it's important to know if we have no flags at all or if we get flags = 1. Print [-] in the case of no flags at all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* bcopyxx/memmove: fix alignment logic for reverse movesH. Peter Anvin2009-05-161-2/+2
| | | | | | | | | The alignment logic for reverse moves is reversed, because the initial edi, and therefore edx, points to the last byte, not to one byte beyond the end. Therefore, in the fully aligned case it will end in 11 binary, not in 00 binary as for the forward case. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: replace the kernel name with BOOT_IMAGE=syslinux-3.81-pre2H. Peter Anvin2009-05-051-13/+10
| | | | | | | | | The BOOT_IMAGE= argument is generated by replacing the kernel name in the argument array. As a result, we shouldn't advance argp. Move the code around slightly, to make it more obvious that that is what is happening. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: honor the "quiet" flagH. Peter Anvin2009-05-051-6/+34
| | | | | | | Honor the "quiet" flag for linux.c32, since some distros have odd notions about these things. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: quiet warningH. Peter Anvin2009-05-041-1/+1
| | | | | | Quiet a (harmless) compiler warning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: consider a zImage kernel to be non-relocatableH. Peter Anvin2009-05-041-1/+1
| | | | | | | | It's pretty safe to say there has never been a working relocatable Linux zImage kernel, and the semantics for them are iffy at best. Consider zImage kernels to be non-relocatable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: when relocating, need to update code32_startH. Peter Anvin2009-05-041-0/+1
| | | | | | | | The normal value for code32_start is based on the kernel load address (in fact, it usually *is* the kernel load address); accordingly, it needs to be updated if the kernel is relocated. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* load_linux.c: add missing header fileH. Peter Anvin2009-05-041-0/+1
| | | | | | We need <minmax.h> for min(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* linux.c32: cap the stack pointer to 0xfff0H. Peter Anvin2009-05-041-1/+2
| | | | | | | | Linux itself is fine with sp = 0 for a 64K segment, but perhaps other things aren't. Just to be safe, set the stack pointer to 64K-16 bytes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* shuffler: fix setting up esp in real-mode shufflesH. Peter Anvin2009-05-041-1/+1
| | | | | | | The value of esp set in real-mode shuffles was wrong. This unfortunately broke linux.c32 :( Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: handle ELF Multiboot kernel where paddr != vaddrH. Peter Anvin2009-05-031-4/+11
| | | | | | | | | The way Grub handles ELF Multiboot kernels where paddr != vaddr is to load at the paddr, but to also adjust the entry point (e_entry) so that the previous vaddr becomes a paddr. Since the Multiboot spec is pretty much "Grub wins", follow this behavior. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* shuffler: when looking for temporary memory, it has to be *free!*syslinux-3.80-pre8H. Peter Anvin2009-05-031-0/+2
| | | | | | | free_area() ended up looking for any area of memory, not necessarily a *free* area of memory. This had predictably disastrous consequences. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* movebits: make the user-space test cases slightly easierH. Peter Anvin2009-05-031-9/+12
| | | | | | | Make it a bit easier to write user-space test cases; use fgets+sscanf so comment lines end up getting ignored. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* shuffler: correctly handle one-to-many relationshipssyslinux-3.80-pre7H. Peter Anvin2009-05-022-26/+133
| | | | | | | | | | | | | | | | | | One-to-many relationships, in which one chunk of a file is used in more than one place, tends to naturally show up in decoding certain fileformats, including (but not limited to) Microsoft SDI. Make the shuffler library handle those cases correctly, and remove a special-purpose hack in sdi.c. This is based on the observation that all one-to-many relationships can be treated as a one-to-one shuffle followed by destination-to-destination copies; i.e. one copy is (arbitrarily) assigned the "master copy" status, and all aliases are then copied from the master copy when the master copy is already in its final place. All other copies can then be simply ignored for the duration of the shuffle, just as zero-memory is. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* shuffle: align the shuffle safe areaH. Peter Anvin2009-05-021-2/+3
| | | | | | For performance, align the shuffle safe area to a dword boundary. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* syslinux_dump_memmap(): make it easier to spot errorsH. Peter Anvin2009-05-021-1/+1
| | | | | | | | Instead of stopping the memmap dump on SMT_END, stop it only on a null pointer. That way we can see if we have any bogus entries with SMT_END. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* syslinux_add_memmap(): fix failures at address zero, more?H. Peter Anvin2009-05-021-38/+63
| | | | | | | | | | | | syslinux_add_memmap() would fail miserably and corrupt the list if an entry was added at address zero. Quite possibly other addresses would have similar problems. Furthermore, we did an extra "optimization pass" which should never have been necessary if the algorithm had been correct in the first place. This should hopefully fix ALL those bugs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: align the stack to a 16-byte boundaryH. Peter Anvin2009-05-021-1/+1
| | | | | | Align the stack to a 16-byte boundary, just in case... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mboot: move setting regs.eax to mboot_run()H. Peter Anvin2009-05-021-2/+1
| | | | | | | The setting of regs.eax in map_image() doesn't really make any sense; move it to mboot_run() instead. Signed-off-by: H. Peter Anvin <hpa@zytor.com>