aboutsummaryrefslogtreecommitdiffstats
path: root/dos/syslinux.c
Commit message (Collapse)AuthorAgeFilesLines
* dos: Use libinstaller option parserShao Miller2010-07-191-61/+19
| | | | | | | We will produce an error message if a user attempts to use an option we don't implement. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
* dos: fix non-executable files which were +xH. Peter Anvin2010-07-191-0/+0
| | | | | | Don't make non-executable files +x... Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: advance the pointer correctlyH. Peter Anvin2010-07-191-4/+5
| | | | | | Advance the pointer into the payload segment correctly. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: add memcpy_from_sl() and use it where appropriateH. Peter Anvin2010-07-191-36/+32
| | | | | | | Add memcpy_from_sl() and use it to handle pointers into the payload section. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: Work-in-progress 2Shao Miller2010-07-101-0/+2
|
* dos: Work-in-progressShao Miller2010-07-031-12/+9
|
* dos: include the ADV in the file size to be sector mappedsyslinux-4.00-pre62H. Peter Anvin2010-06-251-1/+2
| | | | | | | We need to include the ADV in the size of the file that must be sector mapped. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* dos: vacuous ADV supportH. Peter Anvin2010-06-221-0/+7
| | | | | | Vacuous ADV support: install an empty ADV. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge syslinux/extlinux patch code and core codeH. Peter Anvin2010-06-201-1/+1
| | | | | | | | Merge the SYSLINUX and EXTLINUX patching code and core code, removing EXTLINUX as a separate derivative. All the disk-based systems now use the same code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Make syslinux installer real "pathbased"Alek Du2010-06-091-1/+1
| | | | | | | | | | | | | The previous merging extlinux/syslinux patch is not sufficient, the syslinux is not real "patchbased", hence: * fill currentdir in patcharea * search "extlinux.conf" and "syslinux.cfg" for generic_load_config * define boot_image and boot_sector macro for ldsyslinux this could make further merging extlinux and syslinux possible Signed-off-by: Alek Du <alek.du@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge branch 'master' into fscH. Peter Anvin2009-12-221-60/+156
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * dos: int 25/26 may be register-dirty; wrap them in assemblyH. Peter Anvin2009-11-131-30/+14
| | | | | | | | | | | | | | | | int 25h and int 26h are known to be register-dirty for some versions of DOS -- unlike int 21h, which is usually clean. As such, wrap those in assembly functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: always try the FAT32-aware direct I/O calls firstH. Peter Anvin2009-11-111-13/+17
| | | | | | | | | | | | | | | | Always try the FAT32-aware direct I/O calls before trying the legacy raw I/O calls. The reason for doing this is that the FAT32 stuff may be implemented as an add-on. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: DOS version 7.10 is 0x070a, not 0x0710...H. Peter Anvin2009-11-111-4/+4
| | | | | | | | | | | | | | | | | | Fix DOS version 7.10 (first FAT32-capable version) check. Perhaps we should just call the FAT32 calls blindly and fall back to the old calls if they fail? Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: fix the soft-locking loopH. Peter Anvin2009-11-101-1/+1
| | | | | | | | | | | | Code the soft-locking loop correctly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: try to handle both raw DOS mode and Windows modeH. Peter Anvin2009-11-101-31/+83
| | | | | | | | | | | | | | | | The locking API works very different in raw DOS mode and in Windows mode. The hierarchial locking is only available in the latter mode; in the former mode we can only use levels 0 and 4. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * dos: make DOS installer work under WinMEH. Peter Anvin2009-11-101-28/+84
| | | | | | | | | | | | | | At least under WinME, the DOS installer did not work as advertised. With these modifications, it seems to work okay. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into core32H. Peter Anvin2009-05-291-500/+485
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/include/netinet/in.h com32/include/sys/cpu.h dos/argv.c dos/malloc.c dos/syslinux.c extlinux/main.c libinstaller/setadv.c libinstaller/syslinux.h libinstaller/syslxint.h libinstaller/syslxmod.c linux/syslinux.c mtools/syslinux.c win32/syslinux.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Run Nindent on dos/syslinux.cH. Peter Anvin2009-05-291-460/+446
| | | | | | | | | | | | | | | | | | Automatically reformat dos/syslinux.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>
* | dos installer: reuse ldlinux_segH. Peter Anvin2009-05-251-1/+1
| | | | | | | | | | | | | | Make ldlinux_seg a global variable, and use it in syslxmod.c. This reduces the size of syslxmod.o fairly significantly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Standardize the names SECTOR_SIZE and SECTOR_SHIFTH. Peter Anvin2009-05-191-7/+7
| | | | | | | | | | | | | | Use the names SECTOR_SIZE and SECTOR_SHIFT everywhere, instead of an odd mix of symbols and hard-coded constants. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | FAT: change DOS installer to EXE; additional 32K limit fixesH. Peter Anvin2009-05-191-9/+54
|/ | | | | | | | | | | | | | Additional fixes for the 32K limits in the installers. In the case of the DOS installer, that means changing it from COM format to EXE format (since COM format has a 63K hard limit); retain the name syslinux.com for user compatibility, though (DOS doesn't care what the extension except for pathname search; if it finds an MZ EXE header it will use it.) With the change to EXE means having to handle more than one segment. Since we don't have a real DOS compiler we have to wing it a bit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright yearH. Peter Anvin2008-01-101-1/+1
|
* RAID mode installer support for SYSLINUXsyslinux-3.50-pre18H. Peter Anvin2007-06-011-3/+8
| | | | Hook up RAID mode in the installers for SYSLINUX
* Stealth whitespace cleanup (automated)H. Peter Anvin2007-03-141-3/+3
|
* DOS FAT installer: Fix name mangling for -d optionH. Peter Anvin2007-01-241-3/+10
|
* DOS FAT installer: Correct parsing of -d optionH. Peter Anvin2007-01-231-2/+2
|
* DOS FAT installer: support installing ldlinux.sys in a subdirectoryH. Peter Anvin2007-01-231-3/+71
|
* DOS installer: make sure we tell gcc what the memory constraints aresyslinux-3.20-pre11H. Peter Anvin2006-08-081-14/+21
|
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-12/+11
|
* Fix the scanning of the partition table (for the -a option)hpa2004-12-281-0/+1
|
* Support the -m and -a options for the DOS installer as wellhpa2004-12-281-11/+225
|
* Fix the -m and -a options for Win32; add support for a boot sector filehpa2004-12-221-1/+1
| | | | for Win32; minor cleanups.
* Beef up the sanity checking of the boot sector. For really better checkinghpa2004-12-191-9/+17
| | | | we should be checking the FAT for the media signature, too.
* Make the DOS-based installer actually work; mark debugging statementssyslinux-2.20-pre6hpa2004-12-181-24/+55
| | | | as "dprintf"
* MSDN says the 0x08 forms of the lock calls are OK for all filesystems,hpa2004-12-161-0/+8
| | | | and that if one uses 0x48 one has to fall back to 0x08 anyway
* Use the DOS version to determine whether to use the FAT32-capable lockinghpa2004-12-151-16/+12
| | | | functions.
* Put in MS-DOS 7 locking supporthpa2004-12-151-0/+81
|
* @:\LDLINUX.SYS not @:LDLINUX.SYShpa2004-12-151-1/+1
|
* Adjust the interface to syslxmod.c so the DOS installer doesn't needhpa2004-12-151-3/+8
| | | | printf().
* Simple memset/memcpy implementationhpa2004-12-151-3/+3
|
* Tweak optimizations.hpa2004-12-151-5/+5
|
* Convert the DOS installer to C like everything else.hpa2004-12-151-0/+250