aboutsummaryrefslogtreecommitdiffstats
path: root/com32
Commit message (Collapse)AuthorAgeFilesLines
* com32: add a centralized bitops headerH. Peter Anvin2010-11-143-23/+66
| | | | | | | | | Add a centralized bitops header <sys/bitops.h> which uses x86 bitops instructions. This is necessary to keep gcc 4.5 from aborting compilation due to the inlined code being larger than the non-inlined version, and well, we should really use the bitops. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'genec-rosh-for-hpa', remote branches ↵H. Peter Anvin2010-11-143-22/+51
|\ | | | | | | 'genec/sample-make-for-hpa', 'genec/drmk-ver-for-hpa' and 'genec/pxechain-for-hpa'
| * gfxboot: fix buffer overrun when loading kernel/initramfssyslinux-4.03Colin Watson2010-10-201-1/+2
| | | | | | | | | | | | | | | | If the file size wasn't a multiple of 64KB, we could overwrite the next entry in the malloc arena so reading the initramfs would fail. Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * Merge remote branch 'liu/master'syslinux-4.03-pre6H. Peter Anvin2010-10-151-18/+27
| |\
| | * lib: Update memmem functionLiu Aleaxander2010-10-091-18/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current memem implementation can not handle the case that the length of the third parameter(needle) is equal *ONE*. So that the current strstr implemention doesn't work when the lenght of substring is ONE. For example, strstr("linux", "l") it will return NULL instead of "linux", which is not right. This code is stolen from klibc ;) Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
| * | chain.c32: DRMK: Fix comment at top of sourceGene Cumm2010-10-141-1/+2
| | |
| * | chain.c32: DRMK: Add comment about only using a DWORD for partition offsetGene Cumm2010-10-131-0/+1
| | |
| * | chain.c32: DRMK: clean up output; clean up and correct commentsGene Cumm2010-10-131-10/+8
| | |
| * | chain.c: Progress on DRMK and notes that it's not perfect yet.Gene Cumm2010-10-131-2/+21
| | |
* | | rosh: rosh_argcat now has length. if DO_DEBUG, show startup commandGene Cumm2010-10-161-8/+16
| | |
* | | rosh: display command entered and a command unknown message when not knownGene Cumm2010-10-161-20/+24
| | |
* | | Merge branch 'master' into rosh_for_hpaGene Cumm2010-10-133-37/+54
|\| |
| * | gfxboot: add include and menu include supportsyslinux-4.03-pre5Colin Watson2010-10-121-21/+42
| | | | | | | | | | | | | | | | | | | | | | | | Ubuntu CDs use multiple configuration files and the include directive as well as gfxboot, so it's useful for gfxboot to support these. Signed-off-by: Colin Watson <cjwatson@ubuntu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | chain.c32: make CHS calculation match core/fs/diskio.cH. Peter Anvin2010-10-121-14/+10
| | | | | | | | | | | | | | | | | | | | | | | | Use the same format for the CHS calculation as in core/fs/diskio.c; also, apply the correct limits, and propagate the fix to the write routine. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | strspn.c: drop "inline"H. Peter Anvin2010-10-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Drop "inline" from bit operations. These should be recoded to use x86 bts/bt instructions, but for now just drop the "inline" which causes failures on gcc 4.5 due to inlining failures. Reported-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | chain.c32: fix conversion from LBA to CHSH. Peter Anvin2010-10-121-1/+1
| |/ | | | | | | | | | | | | | | Bits [9:8] of the cylinder goes into the top bits of the sector register, not the bottom (and the math for that was wrong, anyway.) Reported-by: Michal Soltys <soltys@ziu.info> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | rosh: add another item in the ToDos commentGene Cumm2010-10-131-0/+2
| |
* | rosh: Fix rosh_ls(); fix FTBFS on rosh_more(); add ROSH_DEBUG2_ARGV_V macroGene Cumm2010-10-092-7/+31
| |
* | unistd.h: Add missing getopt declarationsGene Cumm2010-10-091-0/+4
| |
* | Merge branch 'master' into rosh_for_hpaGene Cumm2010-10-091-3/+29
|\|
| * Merge remote branch 'genec/rosh_for_hpa'syslinux-4.03-pre4H. Peter Anvin2010-10-083-24/+99
| |\
| * | chain: Extra comments; shrink the new space to minimumGene Cumm2010-08-011-5/+5
| | |
| * | chain: Just assign the value rather than using memcpy()Gene Cumm2010-08-011-4/+1
| | |
| * | chain: add drmk= to usageGene Cumm2010-08-011-0/+1
| | |
| * | chain: Fix up and clean up DRMK load code; fix filename length; Patch memory.Gene Cumm2010-08-011-11/+8
| | |
| * | chain.c32: prepare for loading DRMKGene Cumm2010-08-011-0/+31
| | |
| * | chain.c: fix public index value in mbr and gpt iteratorsMichal Soltys2010-07-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | mbr and gpt iterators skip empty / non-data partitions properly, but don't update publicly visible index. With this patch, such partitions are counted as well. Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | rosh: Remove unneeded cases in rosh_command() switch statementsGene Cumm2010-10-091-2/+0
| | |
* | | rosh: Clean up rosh_command to remove old stuffGene Cumm2010-10-091-4/+0
| | |
* | | rosh: code cleanupGene Cumm2010-10-091-3/+2
| | |
* | | rosh: Change rosh_ls()/rosh_dir() to use argc/argv; use getopt()Gene Cumm2010-10-092-76/+47
| | |
* | | rosh: Change rosh_more()/rosh_less() to use argc/argvGene Cumm2010-10-091-26/+18
| | |
* | | rosh: remove cmdstr from rosh_pwd()Gene Cumm2010-10-091-9/+2
| | |
* | | rosh: clear errno before possibly using it. might be set by a previous callGene Cumm2010-10-091-2/+9
| | |
* | | rosh: Add argc/argv rosh_reboot(); Allow warm rebootsGene Cumm2010-10-091-7/+27
| | |
* | | rosh: In main, use string macro directlyGene Cumm2010-10-091-1/+1
| | |
* | | rosh: Change rosh_run() to use argc/argvGene Cumm2010-10-091-14/+13
| | |
* | | rosh: Change rosh_help() to use the string passed to it directlyGene Cumm2010-10-091-9/+6
| | |
* | | rosh: ROSH_DEBUG_ARGV_V in headerGene Cumm2010-10-091-2/+2
| | |
* | | rosh: convert rosh_cat() to argc/argvGene Cumm2010-10-091-18/+9
| | |
* | | rosh: Add function header comments that were missingGene Cumm2010-10-091-3/+24
| | |
* | | rosh: Fix warning on rosh_ls_arg(); remove rosh_echo() for rosh_pr_argv()Gene Cumm2010-10-091-2/+11
| | |
* | | rosh: Rename function as it's verboseGene Cumm2010-10-091-3/+3
| | | | | | | | | | | | | | | rosh_pr_argv and ROSH_DEBUG_ARGV are verbose, printing the argument number and single-quoted string out.
* | | rosh: closedir() only if actually openedGene Cumm2010-10-091-1/+1
| | |
* | | rosh: compact previous commitGene Cumm2010-10-091-2/+1
| | |
* | | rosh: Fix rosh_ls_arg() to prevent segfault on access deniedGene Cumm2010-10-091-1/+6
| | |
* | | rosh: main, prompt and command try to use argc/argv mostlyGene Cumm2010-10-091-23/+25
| | | | | | | | | | | | | | | prompt still uses a string but parses it and passes the parsed argc/argv pair to command. main doesn't need a string anymore
* | | rosh: rosh_cd fix DEBUGGene Cumm2010-10-091-0/+3
| | |
* | | rosh: fix errors in previous commitGene Cumm2010-10-092-2/+5
| | |
* | | rosh: change rosh_cd() to use argc/argvGene Cumm2010-10-092-18/+22
| | |