aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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>
* dmi: dmitest have to use voltage_mvErwan Velu2009-12-041-1/+1
| | | | | | Impact: fixing build error Processor is now using voltage_mv
* Adding ifcpu.c32, removing ifcpuhvmErwan Velu2009-12-043-91/+166
| | | | | | | Impact: ifcpu holds more cases ifcpu allow users defining a set of required cpu features for booting an entry
* com32: Avoid gpxe detection code duplicationErwan Velu2009-12-042-104/+2
| | | | | | Impact: avoid code duplication This will make code more generic, hdt will need it ;)
* Fixing comments on ifcpu64/ifcpuhvmErwan Velu2009-12-042-2/+2
| | | | | | Impact: Fixing typo Fixing typo
* Adding ifcpuhvm.c32Erwan Velu2009-12-042-1/+91
| | | | | | | Impact: new module to boot hvm systems This module allow users to define a boot entry regarding if the cpu is supporting hvm (vmx|svm). This could used to boot xen, or any hypervisor
* pcitest: fix wrong statements about file locationSebastian Herbszt2009-11-241-6/+3
| | | | | | | Impact: Visual The module tries to access the files in the current directory. So this patch fixes the error message accordingly.
* Merge commit 'sha0/chain_isolinux'H. Peter Anvin2009-11-051-3/+116
|\
| * [chain] Run Nindent on chain.cShao Miller2009-10-291-33/+28
| |
| * [chain] Add support for chain-loading another isolinux.binGert Hulselmans2009-10-291-0/+118
| | | | | | | | | | Add 'isolinux=' option to chain.c32 for chain-loading another isolinux.bin.
* | dmi: Adding smbios detectionErwan Velu2009-10-301-1/+1
|/ | | | | | | | Impact: Avoid misdetection of dmi version On some hosts, the legacy DMI version is reported as 0.0. We can use SMBIOS to get the real version. Solves HDT's ticket #8
* Improving chain.c32 help messageGert Hulselmans2009-10-271-1/+12
| | | | | | | Impact: Error message is more detailed In case of syntax error, the message is far more detailed and provides the same content as the documentation integrated in the source code.
* chain: missing some \n one error messagesErwan Velu2009-09-291-4/+4
| | | | | | | | Impact: visual Some \n where missing in some error() calls Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk>
* Adding VMX & SVM cpu flagsErwan Velu2009-09-291-0/+4
| | | | | | Impact: Hardware virtualization is now detected Minor update to detect vmx & svm cpu flags
* gpxecmd: module to send an arbitrary command to gPXEsyslinux-3.83-pre11H. Peter Anvin2009-09-102-4/+141
| | | | | | | Simple module to send an arbitrary command to gPXE, assuming the gPXE CLI API is available. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge commit 'hpa/master' into for-erwanPierre-Alexandre Meyer2009-08-0424-3535/+1934
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * Merge commit 'syslinux-3.83-pre1'H. Peter Anvin2009-07-271-2/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/chain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * 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>
| * | Run Nindent on com32/modules/vpdtest.cH. Peter Anvin2009-05-291-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vpdtest.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/modules/vesainfo.cH. Peter Anvin2009-05-291-47/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/vesainfo.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/modules/sdi.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sdi.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/modules/sanboot.cH. Peter Anvin2009-05-291-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/sanboot.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/modules/reboot.cH. Peter Anvin2009-05-291-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/reboot.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/modules/pmload.cH. Peter Anvin2009-05-291-124/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pmload.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/modules/pcitest.cH. Peter Anvin2009-05-291-68/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/pcitest.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/modules/meminfo.cH. Peter Anvin2009-05-291-78/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/meminfo.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/modules/linux.cH. Peter Anvin2009-05-291-137/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/linux.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/modules/kbdmap.cH. Peter Anvin2009-05-291-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/kbdmap.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/modules/ifcpu64.cH. Peter Anvin2009-05-291-56/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ifcpu64.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/modules/ethersel.cH. Peter Anvin2009-05-291-127/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/ethersel.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/modules/elf.cH. Peter Anvin2009-05-291-183/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/elf.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/modules/dmitest.cH. Peter Anvin2009-05-291-132/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmitest.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/modules/dmi_utils.cH. Peter Anvin2009-05-291-31/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/dmi_utils.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/modules/cpuidtest.cH. Peter Anvin2009-05-291-47/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cpuidtest.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/modules/config.cH. Peter Anvin2009-05-291-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/config.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/modules/cmd.cH. Peter Anvin2009-05-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically reformat com32/modules/cmd.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/modules/chain.cH. Peter Anvin2009-05-291-563/+574
| |/ | | | | | | | | | | | | | | | | Automatically reformat com32/modules/chain.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>
| * 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>
| * 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>
| * shuffler: correctly handle one-to-many relationshipssyslinux-3.80-pre7H. Peter Anvin2009-05-021-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * linux.c32: move handling of mem= and vga= into the library functionsyslinux-3.80-pre5H. Peter Anvin2009-04-291-67/+1
| | | | | | | | | | | | | | 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>
| * Remove the old mboot moduleH. Peter Anvin2009-04-265-1629/+1
| |
* | disk.c32: Fix indentationPierre-Alexandre Meyer2009-04-191-1/+1
| | | | | | | | | | | | | | | | Impact: none Fix indentation for the loop ending curly brace. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | gpllib: Don't clobber legacy C/H/S parameters with EDD onesPierre-Alexandre Meyer2009-04-192-1/+64
|/ | | | | | | | | | | | | | Impact: driveinfo structure change, new disk.c32 module Adapt driveinfo structure to store both legacy and EDD parameters. Change utility functions to use EDD when available (C/H/S being a fallback). Add a new disk.c32 module to test the disk library. It will print information (geometry) about every detected drive. Misc.: refactoring, set ES:DI to 0:0 when querying legacy C/H/S Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* Merge branch 'master' into for-erwanPierre-Alexandre Meyer2009-04-113-72/+10
|\ | | | | | | | | | | Conflicts: com32/hdt/Makefile