summaryrefslogtreecommitdiff
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* lua: update for Syslinux 4Geert Stappers2010-07-012-6/+16
| | | | Update the lua code to work with Syslinux 4.
* Merge branch 'master' into luaH. Peter Anvin2010-07-01527-19618/+50461
|\ | | | | | | | | | | | | Resolved Conflicts: com32/Makefile Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * MCONFIG: add -Wno-error to .lnx filesH. Peter Anvin2010-07-011-1/+1
| | | | | | | | | | | | | | Again, .lnx files are test vehicles... erroring out due to warnings makes no sense. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * MCONFIG: .lnx files are for testing, don't do _FORTIFY_SOURCEH. Peter Anvin2010-07-011-1/+2
| | | | | | | | | | | | | | | | .lnx files are strictly a testing vehicle. It makes absolutely no sense to enforce the often rather arbitrary rules of _FORTIFY_SOURCE on those, so override the default _FORTIFY_SOURCE setting. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * ifplop.c32: Detect if PLoP USB/CD INT13h hook is enabled/disabledGert Hulselmans2010-07-012-1/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New module which detects if the PLoP Boot Loader already has booted a CDROM or USB drive by checking for the presence of the PLoP INT13h hook. The following assembly code (NASM) can detect the PLoP INT13h hook: mov eax,'PoLP' ; Reverse of 'PLoP' mov ebp,'DKHC' ; Reverse of 'CHKD' int 13h cmp eax,' sey' ; Reverse of 'yes ' jz plop_INT13h_active Signed-off-by: Gert Hulselmans <gerth@zytor.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * mboot.h: use <dprintf.h>H. Peter Anvin2010-06-291-7/+1
| | | | | | | | | | | | Use <dprintf.h> like more and more of the system does... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * config.c32: accept an optional new directoryH. Peter Anvin2010-06-281-3/+4
| | | | | | | | | | | | | | Accept an optional new directory to config.c32, just as we permit for the CONFIG statement. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Merge remote branch 'sha0/gert_chain'H. Peter Anvin2010-06-271-6/+19
| |\
| | * chain.c32: pass partition number to stage2 of Grub LegacyGert Hulselmans2010-06-271-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Grub Legacy stage2 will read the install_partition variable from memory address 0x8208. We only need to change the value at 0x820a to the correct partition number: -1: whole drive (default) 0-3: primary partitions 4-*: logical partitions Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| | * chain.c32: only pass partition number in DH, when grldr= is usedGert Hulselmans2010-06-271-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add grldr= as boot parameter, so the partition number is only passed to grub4dos grldr, when grldr= is used. Currently the partition number is passed in DH unconditionally. As consequence, grldr will set its root partition on which is searches its menu.lst to (hd0), because -1 (whole drive) is passed in DH as root partition: chain.c32 file=/grldr When the conditional check, this problem is solved: chain.c32 file=/grldr Grub4dos will search all partitions for its menu.lst When you want to set the root partition, use something like the following: chain.c32 hd0,2 grldr=/grldr chain.c32 fs grldr=/grldr Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * | rosh: update for Syslinux 4 and make it more usableGene Cumm2010-06-272-344/+733
| |/ | | | | | | | | | | | | | | | | Without further adieu, I would like to announce that I've finally pushed ROSH, the Read-Only SHell, finally to the point of being reasonably usable. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: add keeppxe to usage output and cleanup commentsGert Hulselmans2010-06-271-21/+25
| | | | | | | | | | Add keeppxe to usage output. Cleanup some comments.
| * Export the 64-bit partition offset and use it in chain.cH. Peter Anvin2010-06-272-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | When used with the "fs" option to chain.c32, we need to know our own filesystem offset. That means knowing if we used the MBR vs GPT partition information, as well as if we ended up using the passed-in information or not. Resolve this by providing an explicit pointer to the current partition offset. Eventually this should be replaced by some kind of statfs() call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * PM getcwd(); Fix COM32 getcwdGene Cumm2010-06-262-21/+3
| | | | | | | | | | | | | | | | | | Implement getcwd() in the core; Fix COM32 getcwd() to use the new function. This resolves the previous comment about COM32 getcwd() not working by not using INT 22h AX=001Fh. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * menu: add MENU HELPH. Peter Anvin2010-06-263-0/+32
| | | | | | | | | | | | | | Add a feature to display fullscreen help via menu selection entry (inspired by the Debian install disc menus.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: fix handover to a logical partitionH. Peter Anvin2010-06-261-48/+65
| | | | | | | | | | | | | | | | Make sure the handover information to a logical partition is adjusted correctly -- we can't just hand over the partition entry, but we have to adjust start_lba to match the real start LBA. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pwd.c32: add to MakefileH. Peter Anvin2010-06-261-1/+1
| | | | | | | | | | | | Actually *build* pwd.c32... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain.c32: "fs" is a singular token, only match if completeH. Peter Anvin2010-06-261-1/+1
| | | | | | | | | | | | | | fs is a full token, not a prefix. Reported-by: Gert Hulselmans <gerth@zytor.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * com32 pwd moduleGene Cumm2010-06-261-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | [MODULE] pwd to list present (current) working directory. If the returned string is empty, display ".". If the return value is NULL, display an error message. Unfortunately, it appears that COM32 getcwd is not working properly at this moment, it calling the COMBOOT call and getting an empty string. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Fix COM32 chdir()Gene Cumm2010-06-262-6/+6
| | | | | | | | | | | | | | | | Fix COM32 chdir() since it's implemented in the core. Forgot the core changes needed for this before. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pmapi: make the pmapi vector include its own sizeH. Peter Anvin2010-06-261-0/+2
| | | | | | | | | | | | Future-proof the pmapi vector by making it include its own size. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * chain: Support booting GPT partition by labelShao Miller2010-06-261-5/+72
| | | | | | | | | | | | | | Use the "label:" specifier followed by the label for one of a GPT disk's partitions. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| * chain: Support booting GPT disk/partition by GUIDShao Miller2010-06-261-22/+148
| | | | | | | | | | | | | | Use the "guid:" specifier followed by the GUID for a GPT disk or one of its partitions. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| * chain.c32: correctly set the length of the GPT handover structuresyslinux-4.00-pre61H. Peter Anvin2010-06-251-50/+57
| | | | | | | | | | | | | | We need to make sure the entire GPT handover structure is mapped correctly by the shuffler. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * Merge remote branch 'sha0/chain_gpt'H. Peter Anvin2010-06-251-196/+660
| |\
| | * chain: Implement GPT hand-over protocol as documentedShao Miller2010-06-251-1/+50
| | | | | | | | | | | | | | | | | | | | | When a partition was yielded by a GPT partition iterator, we follow the protocol documented in syslinux/doc/gpt.txt. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Allow booting the Syslinux partition with "fs"Shao Miller2010-06-241-31/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will now accept an "fs" option which instructs us to chain-load whatever partition we were booted from. Not useful for PXELINUX, for obvious reasons. Can be used in combination with a "file=" option, to boot something other than Syslinux. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: A sprinkling of documentationShao Miller2010-06-241-20/+29
| | | | | | | | | | | | Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Remove type-assurance macro for declarationsShao Miller2010-06-241-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A coding pattern from WinVBlock leaked through whereby a macro is used to declare functions having the same prototype. This makes their declarations look a little less like a traditional declarations however, so that pattern has been removed. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Support GPT disksShao Miller2010-06-241-1/+230
| | | | | | | | | | | | | | | | | | | | | | | | A GPT disk partition iterator is introduced, so we can chain-load partitions on such a disk. Tested-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Change disk partition iteration strategyShao Miller2010-06-241-111/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to support more than just MBR and EBR walking, we introduce the abstraction of a partition iterator. Currently there are just the two types: MBR partition iterator and extended partition iterator. Tested-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Fix allocation size in read_sectorsShao Miller2010-06-241-1/+1
| | | | | | | | | | | | | | | | | | Oops. We might allocate more than just one sector. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Add DOS partition dumping routine for debuggingShao Miller2010-06-231-0/+33
| | | | | | | | | | | | Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Use struct mbr where applicableShao Miller2010-06-231-39/+52
| | | | | | | | | | | | | | | | | | Instead of magic offsets. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Use CHS typedef and macrosShao Miller2010-06-221-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | A DOS partition table entry contains cylinder, head, sector tuples which can be convenient to group together and extract with convenience macros. Currently unused. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Allow reading more than a single sectorShao Miller2010-06-221-9/+15
| | | | | | | | | | | | Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * chain: Run Nindent on com32/modules/chain.cShao Miller2010-06-221-26/+24
| | | | | | | | | | | | Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| * | Rename dir.c32 -> ls.c32syslinux-4.00-pre60H. Peter Anvin2010-06-242-2/+2
| | | | | | | | | | | | | | | | | | | | | Use the term "ls" for directory listing, like real operating systems ;) -hpa
| * | Merge remote branch 'erwan/master_new'H. Peter Anvin2010-06-242-31/+49
| |\ \ | | |/ | |/|
| | * ifcpu: Adding PAE supportErwan Velu2010-06-241-4/+9
| | |
| | * disklib: Add WEE bootloader detection codeGert Hulselmans2010-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WEE, is a bootloader based on grub4dos. It fits in the first 63 sectors of the drive. The first 4 bytes are: $ hexdump -n 4 /media/Data/ubcd-new/wee-2010-06-20/wee63.mbr 0000000 5eeb 0090 0000004 Or in the format get_mbr_string wants it: $ hexdump -C -n 4 wee63.mbr 00000000 eb 5e 90 00 Patch tested in qemu: qemu -boot d -cdrom hdt.iso -hda wee-2010-06-20/wee63.mbr
| | * ifcpu: printing usage if no parameterErwan Velu2010-06-241-31/+42
| | | | | | | | | | | | If you just call the ifcpu.32 it display the usage.
| * | Merge remote branch 'erwan/master_new'H. Peter Anvin2010-06-2221-404/+401
| |\ \ | | |/
| | * hdt: new release 0.3.6.1hdt-0.3.6.1Erwan Velu2010-06-221-2/+2
| | | | | | | | | | | | | | | Increase subrelease for syslinux4. hdt just only received code cleaning, no new feature.
| | * hdt: Using syslinux_reboot() callErwan Velu2010-06-225-17/+14
| | | | | | | | | | | | Rebooting can be achieved via syslinux_reboot() instead of the useless reboot.c32 module.
| | * hdt: updating memtest to 4.10Erwan Velu2010-06-222-3/+3
| | |
| | * Replacing strncpy by strlcpyErwan Velu2010-06-2211-376/+376
| | | | | | | | | | | | | | | As reported by hpa, strlcpy is safer and could prevent some bugs. So I replaced all strncpy by strlcpy calls.
| | * Merge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux ↵Erwan Velu2010-06-226-25/+327
| | |\ | | | | | | | | | | | | into master_new
| | * | Fixing compilation warningErwan Velu2010-06-214-7/+7
| | | | | | | | | | | | | | | | Reported by Genne Cumm, some more_printf calls generates gcc warning.
| * | | sysdump, be_srec: increment the addressH. Peter Anvin2010-06-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Need to increment the address for each srec... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>