summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'hdt/master'syslinux-4.04-pre5H. Peter Anvin2011-01-251-6/+24
|\
| * disklib: Detect DiskCryptor MBRGert Hulselmans2011-01-251-0/+2
| | | | | | | | | | | | Add detection code for DiskCryptor MBR to disklib. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * disklib: Detect "FreeDOS (eXtended FDisk)" MBRGert Hulselmans2011-01-251-1/+3
| | | | | | | | | | | | Add detection code for "FreeDOS (eXtended FDisk)" MBR to disklib. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * disklib: Detect "MS-DOS 3.30 through Windows 95 (A)" MBRGert Hulselmans2011-01-251-1/+3
| | | | | | | | | | | | Add detection code for "MS-DOS 3.30 through Windows 95 (A)" MBR to disklib. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * disklib: Detect new Syslinux (normal + isohybrid) MBRGert Hulselmans2011-01-251-4/+13
| | | | | | | | | | | | | | Add detection code for new Syslinux (normal + isohybrid) MBR to disklib. Switch old Syslinux MBR and Master Boot LoaDeR detection code. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
| * disklib: Detect Paragon MBRGert Hulselmans2011-01-251-0/+3
| | | | | | | | | | | | Add detection code for Paragon MBR to disklib. Signed-off-by: Gert Hulselmans <gerth@zytor.com>
* | Merge remote branch 'sha0/memdskprobe'H. Peter Anvin2011-01-251-29/+96
|\ \
| * | memdisk: Fix INT 0x13, AH==0x15 disk drive probeShao Miller2011-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The function might return CF==0 ("success"), but could include AH==0 ("no such drive"). This is the case on at least a number of Dell models. Now we check AH, too. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| * | memdisk: Enhance disk-probe debugging outputShao Miller2011-01-251-20/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an effort to trouble-shoot a problem report on some Dell models (including an Optiplex GX260), we add further debugging output to try to find out at which point things go wrong. The problem units are apparently probing as "drive present" for all drives, which obviously isn't right. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| * | memdisk: Make debug-mode a tad prettierShao Miller2011-01-241-12/+22
| |/ | | | | | | | | | | By removing the use of #ifdef-#endif blocks. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
* | disk: put a magic at the end of the boot sectorH. Peter Anvin2011-01-254-9/+19
| | | | | | | | | | | | | | | | | | Put a magic signature at the end of the boot sector, and a backpointer to the code that contains the pointer to the main code extent. This is useful for integrity-checking tools, and could help the installer in the future. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | diskstart: move writestr_early out of boot sectorH. Peter Anvin2011-01-252-19/+26
|/ | | | | | | We can save 8 bytes in the boot sector by moving writestr_early out and putting the real routine in sector 1. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* diskio: Support EDD 4 16-byte device pathsH. Peter Anvin2011-01-171-2/+2
| | | | | | | | EDD 4 has 16-byte device path information. Make the EDD buffer big enough to capture that. Note that the location of the device path checksum actually depends on the device path length information field! Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* diskio: add reminder that we need clear in the futureH. Peter Anvin2011-01-171-0/+3
| | | | | | | | | Currently, disk_init() can only be called once, and edd_params get statically initialized to zero. This will change once this function can be called more than once, and we depend on the pre-initialization to zero to avoid known BIOS bugs. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* NEWS: Document MBR fix.syslinux-4.04-pre4H. Peter Anvin2010-12-231-0/+2
| | | | Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* mbr: Make sure the MBR code starts with the byte 0x33H. Peter Anvin2010-12-234-5/+4
| | | | | | | | | Apparently some BIOSes (including some Acer Travelmate machines) require an MBR to start with 0x33; apparently Micro$oft MBRs start with 33 C0, an alternate coding of the "xorw %ax,%ax" instruction. As such, follow suit to work on these braindead BIOSes. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core/diskboot.inc: fix bug; Sect1Ptr1_VALGene Cumm2010-12-211-1/+1
|
* core/diskstart.inc: Remove code copied to diskboot.incGene Cumm2010-12-201-421/+1
|
* core/diskboot.inc: The boot sector code from diskstart.incGene Cumm2010-12-201-0/+444
| | | | Split to allow it to be used by debugging/diagnostic images
* core/diskstart.inc: Sect1Ptr values moved to constantsGene Cumm2010-12-201-2/+5
| | | | | This allows another program to re-use the boot sector and define different values, once split.
* core/diskstart.inc: Use xint13 when it saves space or protectsGene Cumm2010-12-201-5/+4
| | | | Additional note on where it will cost to possibly not protect anything
* core/diskstart.inc: Wrap INT13h in xint13 to preserve ESGene Cumm2010-12-201-1/+3
| | | | | | Sometimes INT13h AH08h kills ES to return info about a "floppy" (since an unpartitioned HDD might look like a floppy). Also, change to tabs on previous line.
* core: Add workaround in the Makefile for GNU Make 3.82 bugH. Peter Anvin2010-12-161-1/+3
| | | | | | | Apparently GNU Make 3.82 mishandles pattern rules with fixed dependencies, sigh. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: remove HAS_LOCALBOOTSebastian Herbszt2010-12-166-20/+0
| | | | | | | HAS_LOCALBOOT is set unconditionally in config.inc. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* NEWS: document fix for non-partitioned devices.syslinux-4.04-pre3H. Peter Anvin2010-12-141-0/+1
|
* core, diskstart: add more sanity checks for handover infoH. Peter Anvin2010-12-141-1/+4
| | | | | | | | | | In particular, somehow we failed to actually test for DS:SI = 0:0! This tests both for SI < 16 and DS:SI < 1024. The former of those tests is a bit iffy and probably should be removed. This should also be promoted into isohdpfx. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* syslinux.ld: ld 2.20.51 seems to want .bss16 explicitly (NOLOAD)H. Peter Anvin2010-12-141-2/+2
| | | | | | | ld 2.20.51 seems to want the .bss16 explicitly marked (NOLOAD). We do that for most of the other bss sections, so we might as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdiskfind: abstract get page size so we can compile against klibcH. Peter Anvin2010-12-071-1/+11
| | | | | | | | | | klibc doesn't have sysconf(), because it involves a hideously inefficient multiplex. Thus, if _SC_PAGESIZE is not defined, invoke getpagesize(). Call the routine get_page_size() so it doesn't conflict on a platform which has both sysconf(_SC_PAGESIZE) and getpagesize(). Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* NEWS: further updatessyslinux-4.04-pre2H. Peter Anvin2010-12-061-0/+3
|
* Merge remote branch 'genec/news-for-hpa'H. Peter Anvin2010-12-061-0/+14
|\
| * NEWS: Update for 4.04 as of 4.04-pre1Gene Cumm2010-12-031-0/+14
| |
* | com32: fix a ffile descriptor leak on open() of a nonexistent fileH. Peter Anvin2010-12-061-2/+4
| | | | | | | | | | | | | | | | If we try to open a nonexistent file, free the resulting file descriptor. Reported-by: Antonio Carlini <arcarlini@iee.org> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | gfxboot: require LABEL keywordsSebastian Herbszt2010-12-051-0/+5
| | | | | | | | | | | | Require LABEL keywords in config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | gfxboot: support TEXT and ENDTEXT keywordsSebastian Herbszt2010-12-051-1/+14
| | | | | | | | | | | | Support TEXT and ENDTEXT keywords; ignore the help text. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
* | Bump version to 4.04syslinux-4.04-pre1H. Peter Anvin2010-12-021-1/+1
|/
* man: remove long-since-obsolete note about name manglingH. Peter Anvin2010-11-181-5/+0
| | | | We haven't mangled label names for a very long time...
* core, pxe: Fix handling of unqualified DNS namesH. Peter Anvin2010-11-141-1/+1
| | | | | | | | Actually append the domain name to the end of an unqualified DNS name like we should have done all along. Reported-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: use char array for external symbolsH. Peter Anvin2010-11-141-3/+3
| | | | | | | Use "extern const char foo[];" for an external symbol rather than "extern void" (gcc 4.5 fix.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* gfxboot: use a character array for an absolute symbolH. Peter Anvin2010-11-141-3/+4
| | | | | | | | The best way to access an absolute symbol is "extern const char foo[];" -- older gccs let you get away with "extern void" but gcc 4.5 chokes on it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* disklib: remove improper "inline"H. Peter Anvin2010-11-141-2/+2
| | | | | | | Remove improper inlines from static functions which cause gcc 4.5 to abort due to inlining failure. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* 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-148-25/+683
|\ \ \ | | | | | | | | | | | | 'genec/sample-make-for-hpa', 'genec/drmk-ver-for-hpa' and 'genec/pxechain-for-hpa'
| | | * PXELINUX: shorten code in pxenv callGene Cumm2010-11-131-4/+2
| | | | | | | | | | | | | | | | | | | | Now that both scenarios are clear (do/do not call timer_cleanup/ timer_init), shorten it to eliminate a needless jmp.
| | | * PXELINUX: add gPXE PXENV_FILE_EXEC in addition to PXENV_RESTART_TFTP; commentsGene Cumm2010-11-131-2/+6
| | | | | | | | | | | | | | | | Both of these calls will not return if successful
| | | * PXELINUX: Fix timer bugGene Cumm2010-11-051-0/+19
| | | | | | | | | | | | | | | | | | | | Certain calls to the PXE stack could potentially remove us from memory. Revert the INT 1Ch timer to its previous state.
| | * | ver.com: Update some of how DRMK is handledGene Cumm2010-11-061-3/+14
| | | |
| | * | ver.com: Fix month calculation for DRMK Build DateGene Cumm2010-11-021-1/+7
| | | |
| | * | modules/Makefile: add ver.comGene Cumm2010-10-251-1/+1
| | | |
| | * | ver.com: Fixed width number output; Conditional skip DOS serialGene Cumm2010-10-251-44/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Create two functions, writedecb[23], to output a byte AL as fixed with of 2 or 3 characters wide, 0 prepend If all of the DOS Serialnumber is 0, don't bother with printing anything.
| | * | ver.com: Compact file by reuse of stringGene Cumm2010-10-241-9/+13
| | | |