aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'origin/master' into pathbasedH. Peter Anvin2010-05-201-11/+15
|\ | | | | | | | | | | | | Resolved Conflicts: com32/modules/cat.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * cat.c32: handle multiple files, use argv[0], copy 4K at a timeH. Peter Anvin2010-05-201-11/+14
| | | | | | | | | | | | | | Loop over multiple files, use argv[0] for the program name, and copy 4K at a time. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | cat.c32: remove unused variableH. Peter Anvin2010-05-121-1/+0
| | | | | | | | | | | | Remove unused variable as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | vpdtest.c32: remove unused variableH. Peter Anvin2010-05-121-1/+0
| | | | | | | | | | | | Remove unused variable as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | sdi.c32: remove unused variableH. Peter Anvin2010-05-121-1/+0
| | | | | | | | | | | | Remove unused variable as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | pcitest.c32: mark argc/argv usedH. Peter Anvin2010-05-121-0/+3
| | | | | | | | | | | | Part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | disk.c32: remove unused variableH. Peter Anvin2010-05-121-3/+4
| | | | | | | | | | | | Remove unused variable as part of -Werror cleanup. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | Merge branch 'master' into pathbasedH. Peter Anvin2010-05-123-9/+8
|\|
| * cpuid: Typo between argv & argcErwan Velu2010-05-121-1/+1
| | | | | | | | argv isn't a number ;)
| * cmd: Adding proper include to syslinux_run_commandErwan Velu2010-05-121-0/+1
| |
| * disk: Fixing get_error() callErwan Velu2010-05-121-8/+6
| | | | | | | | get_error prototype changed since this module was written
* | Merge branch 'master' into pathbasedH. Peter Anvin2010-05-112-1/+31
|\| | | | | | | | | | | | | Resolved Conflicts: com32/modules/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * cat.c32: move from samples to modules; remove debug codeH. Peter Anvin2010-05-112-1/+31
| | | | | | | | | | | | | | Move cat.c32 from samples to modules, and remove debugging messages. Real users may want to use this. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into pathbasedH. Peter Anvin2010-05-111-1/+1
|\|
| * Merge remote branch 'hdt-pierre/fixes-for-3.86'H. Peter Anvin2010-05-111-1/+1
| |\
| | * disk.c32: add disk geometry checkPierre-Alexandre Meyer2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Make sure the CHS geometry is valid before displaying disk information to avoid showing garbage. Debugging-info-by: Gert Hulselmans <gerth@zytor.com> Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | | cpuid.c32: print unsigned valuessyslinux-4.00-pre41H. Peter Anvin2010-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | | Print unsigned values; formatting was wrong for unsigned values anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge remote branch 'origin/master' into pathbasedsyslinux-4.00-pre40H. Peter Anvin2010-04-281-1/+1
|\| |
| * | chain.c32 sethidden option fixMichal Soltys2010-04-231-1/+1
| | | | | | | | | | | | | | | | | | Hidden sectors value was applied at the wrong offset. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge commit 'syslinux-3.86' into pathbasedsyslinux-4.00-pre38H. Peter Anvin2010-04-011-3/+3
|\| | | | | | | | | | | | | | | | | | | | Resolved Conflicts: core/cpuinit.inc Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | cpuid.c32: output the correct register namesH. Peter Anvin2010-03-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Output the correct register names in cpuid.c32; fix copy-and-paste error. Reported-by: Andrew Jones <drjones@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge branch 'master' into pathbasedH. Peter Anvin2010-03-302-1/+61
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/modules/Makefile core/comboot.inc core/cpuinit.inc core/idle.inc Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * | cpuid.c32: very simple low-level CPUID info CLI routineH. Peter Anvin2010-03-302-1/+62
| |/ | | | | | | | | | | Add a very simple com32 program to dump a single CPUID leaf. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | dir.c32: show long directories in pagesH. Peter Anvin2010-03-141-20/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When columnizing large directories, columnize only inside of a page, i.e. show: a d g b e h c f i j m p k n q l o r This seems to have the best readability. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dir.c32: allow "dir" without an argument to mean "dir ."syslinux-4.00-pre35H. Peter Anvin2010-03-061-6/+12
| | | | | | | | | | | | People logically expect "dir" to display the current directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dir.c32: sort, columize and page the outputH. Peter Anvin2010-03-061-16/+146
| | | | | | | | | | | | | | | | Make the output of dir.c32 actually usable for an average user. Present the directory contents sorted in columns, and pause for every screenful. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge remote branch 'origin/master' into pathbasedsyslinux-4.00-pre33H. Peter Anvin2010-03-051-6/+5
|\|
| * chain.c32: Fix chaining to MBRsH. Peter Anvin2010-03-051-6/+5
| | | | | | | | | | | | | | | | The change to load the bootsector even when loading a bootstrap from a file broke the handing of chainloading the MBR of a disk. Fix this. Debugging-info-by: Thomas Mieslinger <thomas.mieslinger@lundl.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into pathbasedsyslinux-4.00-pre20H. Peter Anvin2010-02-141-66/+134
|\| | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/include/syslinux/pxe.h core/pxelinux.asm core/syslinux.ld Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c: part_info -> partinfosyslinux-3.85-pre11H. Peter Anvin2010-02-131-1/+1
| | | | | | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: add option to set hidden sectors; load boot sector for NTLDRH. Peter Anvin2010-02-131-66/+134
| | | | | | | | | | | | | | Add an option to update the in-memory version of FAT/NTFS hidden sectors (== partition offset); load the boot sector for NTLDR. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'origin/master' into fscH. Peter Anvin2010-02-011-5/+8
|\|
| * chain.c32: Handle nonlinear logical partitionssyslinux-3.85-pre3H. Peter Anvin2010-01-271-5/+8
| | | | | | | | | | | | | | | | | | | | | | Some partitioning program, including at least parted, apparently create the list of logical partition headers nonlinearly with the partition themselves. Thus, make it a requirement that then fit inside the overall extended partition, but not inside the corresponding sublogical partition. Reported-by: Gert Huselmans <gerth@zytor.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into fscH. Peter Anvin2010-01-241-1/+8
|\| | | | | | | | | | | Conflicts: com32/lib/MCONFIG com32/lib/readdir.c
| * chain.c32: simplify the grub4dos supportH. Peter Anvin2010-01-101-13/+9
| | | | | | | | | | | | | | Grub4dos (like Grub in general) uses the same partition numbers as Linux (and chain.c32), minus one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: add grldr= command for Grub4dosKim Mik2010-01-101-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | grldr of Grub4dos wants the partition number in DH: 0xff: whole drive 0-3: primary partitions 4-*: logical partitions Hmmm... there really isn't a huge reason not to do this unconditionally, at least unless it's known to cause problems. It would be better, of course, if grldr used the standard DS:SI, but it doesn't, so oh well. Some info of a Grub4dos developer (Tinybit): GRLDR can be loaded at any address with alignment 16(i.e., a possible segment base address). Generally you want to load it at 0000:7C00, or at 2000:0000. Of course you never load it at 0000:0000 or similar. Before jumping to the entry point at the very beginning of GRLDR, you should setup DL=(BIOS drive) and DH=(partition number). For partition numbers, 0 - 3 are primary, 4 - 0xFE are logical. (DH=0xFF) stands for whole drive(unpartitioned). DH will later be passed to install_partition(the third byte, from bit 16 to bit 23). http://www.boot-land.net/forums/index.php?showtopic=8457&st=20&start=20 post #22
* | Merge branch 'master' into fscH. Peter Anvin2009-12-301-2/+2
|\|
| * chain.c32: stylistic comments/usage output changesKim Mik2009-12-281-2/+2
| | | | | | | | | | | | | | | | | | Comments fix and usage output corrected for chain.c32 - Gert Hulselmans Signed-off-by: Gert Hulselmans <kimmik999999@yahoo.co.uk> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'origin/master' into fscsyslinux-4.00-pre9H. Peter Anvin2009-12-281-2/+25
|\| | | | | | | | | | | | | Resolved Conflicts: version Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * 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
* | Merge commit 'syslinux-3.84'H. Peter Anvin2009-12-221-0/+3
|\| | | | | | | | | | | | | Resolved Conflicts: Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * 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>
* | Merge branch 'master' into fscH. Peter Anvin2009-12-227-113/+174
|\| | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/lib/sys/open.c com32/modules/Makefile dos/Makefile dos/com16.ld dos/syslinux.c version 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