aboutsummaryrefslogtreecommitdiffstats
path: root/dos
Commit message (Collapse)AuthorAgeFilesLines
* dos: int 25/26 may be register-dirty; wrap them in assemblyH. Peter Anvin2009-11-134-31/+102
| | | | | | | | 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: don't add the linker script twice on the ld command lineH. Peter Anvin2009-11-111-1/+1
| | | | | | | My version of the linker can deal with it, but others might not be so smart. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* dos: drop unneeded .eh_frame sectionH. Peter Anvin2009-11-112-2/+5
| | | | | | gcc will produce an .eh_frame section, which we have no use for. 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-102-28/+85
| | | | | | | 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>
* 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>
* Run Nindent on dos/string.hH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat dos/string.h 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>
* Run Nindent on dos/stdlib.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | Automatically reformat dos/stdlib.h 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>
* Run Nindent on dos/stdio.hH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | Automatically reformat dos/stdio.h 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>
* Run Nindent on dos/stdint.hH. Peter Anvin2009-05-291-28/+28
| | | | | | | | | Automatically reformat dos/stdint.h 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>
* Run Nindent on dos/skipatou.cH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat dos/skipatou.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>
* Run Nindent on dos/printf.cH. Peter Anvin2009-05-291-235/+246
| | | | | | | | | Automatically reformat dos/printf.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>
* Run Nindent on dos/perror.cH. Peter Anvin2009-05-291-1/+1
| | | | | | | | | Automatically reformat dos/perror.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>
* Run Nindent on dos/mystuff.hH. Peter Anvin2009-05-291-3/+2
| | | | | | | | | Automatically reformat dos/mystuff.h 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>
* Run Nindent on dos/malloc.hH. Peter Anvin2009-05-291-5/+5
| | | | | | | | | Automatically reformat dos/malloc.h 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>
* Run Nindent on dos/malloc.cH. Peter Anvin2009-05-291-74/+73
| | | | | | | | | Automatically reformat dos/malloc.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>
* Run Nindent on dos/free.cH. Peter Anvin2009-05-291-47/+46
| | | | | | | | | Automatically reformat dos/free.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>
* Run Nindent on dos/conio.cH. Peter Anvin2009-05-291-11/+11
| | | | | | | | | Automatically reformat dos/conio.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>
* Run Nindent on dos/atou.cH. Peter Anvin2009-05-291-4/+4
| | | | | | | | | Automatically reformat dos/atou.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>
* Run Nindent on dos/argv.cH. Peter Anvin2009-05-291-41/+41
| | | | | | | | | Automatically reformat dos/argv.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>
* Run Nindent on dos/__udivmoddi4.cH. Peter Anvin2009-05-291-21/+21
| | | | | | | | | Automatically reformat dos/__udivmoddi4.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>
* Run Nindent on dos/__divdi3.cH. Peter Anvin2009-05-291-15/+15
| | | | | | | | | Automatically reformat dos/__divdi3.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>
* Fix NASM dependency generationH. Peter Anvin2009-04-271-1/+1
| | | | | | | | | Fix missing -M from NASM dependency generation calls; adopt the uniform stanza "-M -DDEPEND" even for sites that were already correct. Also, use ">" not ">>" for obvious reasons... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generation: MCONFIG.embeddedH. Peter Anvin2009-04-271-10/+1
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Unify dependency generationH. Peter Anvin2009-04-271-5/+5
| | | | | | | | | | | | Make the dependency generation more common; have a general pattern in MCONFIG, and use it in rules (not in CFLAGS). For NASM source, in order to stay compatible with old versions of NASM, run NASM twice; newer versions of NASM is capable of generating dependencies simultaneously like gcc can, but that would break compatibility with older distros. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-16/+2
| | | | | | Unify common pieces to "embedded" targets (those that produce code that runs neither in the host nor in a com32 environment); this fixes the broken sample/ directory Makefile.
* Major Makefile cleanups; gcc 4.3.0 compatiblityH. Peter Anvin2008-08-201-22/+33
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* Build _bin.c files in libinstaller; clean up B/I separationH. Peter Anvin2008-06-271-2/+4
| | | | | | | Clean up the BSUBDIR/ISUBDIR separation further. Build _bin.c files, which are an intermediate stage toward building the installers, in the libinstaller directory, since that directory is used by all the installers anyway. That also lets us get bin2c.pl out of the root.
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-292-8/+284
| | | | | | | | Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.
* Assemble via ELF, to enable future linkingH. Peter Anvin2008-05-281-1/+2
| | | | | Assemble all files to ELF instead of using the NASM built-in linker. This can enable us to do actual linking in the future.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+2
| | | | -fstack-protector flag enabled by default.
* Use $(CC) in gcc_ok macro, not plain gccH. Peter Anvin2008-03-051-1/+1
| | | | | Use $(CC) in gcc_ok macro, not plain gcc. This seems to work, iff the gcc_ok macro is declared with =, not :=
* Prevent inclusion of system include files when inappropriateH. Peter Anvin2008-03-031-1/+2
| | | | | Use "-nostdinc -iwithprefix include" to prevent the inclusion of system header files, but still permitting *compiler* header files.
* Merge commit 'origin/master' into advH. Peter Anvin2008-01-103-3/+3
|\ | | | | | | | | | | Conflicts: extlinux/extlinux.c
| * Update copyright yearH. Peter Anvin2008-01-103-3/+3
| |
* | Create libinstaller; actually implement boot-once for extlinuxH. Peter Anvin2007-12-141-3/+5
|/ | | | | | --once now supported for extlinux; some infrastructure for syslinux there as well, need implementation in all the various installers, however.
* Fix building on a 64-bit system without a 32-bit system installedsyslinux-3.52-pre10syslinux-3.52H. Peter Anvin2007-09-242-0/+143
| | | | | A bunch of glibc header files were bogusly included. We should not depend on having a 32-bit glibc installed, since we don't use it.
* RAID mode installer support for SYSLINUXsyslinux-3.50-pre18H. Peter Anvin2007-06-011-3/+8
| | | | Hook up RAID mode in the installers for SYSLINUX
* Don't clobber /dev/null when compiling as rootLuciano Rocha2007-05-251-2/+4
| | | | | | Compiling as root is highly discouraged, but some people do it anyway. gcc_ok, however, can clobber /dev/null due to "-o /dev/null"; this is bad. Instead, write a temporary file and delete it.
* Stealth whitespace cleanup (automated)H. Peter Anvin2007-03-141-3/+3
|
* Deal with various distributions breaking gcc in weird waysH. Peter Anvin2007-02-061-1/+6
|
* 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
|
* Makefile cleanup to be able to build with CC='gcc -m32'syslinux-3.32-pre2H. Peter Anvin2006-10-172-1/+7
|
* Move -m32 to CFLAGS as wellH. Peter Anvin2006-10-171-2/+2
|
* Move flags from CC to CFLAGSH. Peter Anvin2006-10-171-2/+2
|