summaryrefslogtreecommitdiff
path: root/memdisk
Commit message (Collapse)AuthorAgeFilesLines
* Fix NASM dependency generationH. Peter Anvin2009-04-271-2/+2
| | | | | | | | | 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-272-50/+12
| | | | | | | Unify dependency generation and move common rules into MCONFIG.embedded. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Global whitespace cleanup.H. Peter Anvin2009-04-202-10/+10
| | | | Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* MEMDISK: traceability for the geometryH. Peter Anvin2009-04-141-8/+27
| | | | | | Print the source of the geometry determination. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* MEMDISK: fix MBR geometry extractionH. Peter Anvin2009-04-141-1/+1
| | | | | | | Fix the MBR geometry extraction; there was an off-by-2 error in the MBR signature offset. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* memdisk: fix comment syntax in memdisk.ldH. Peter Anvin2009-04-041-11/+11
| | | | Fix build failure due to incorrect comment syntax in memdisk.ld
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-045-5/+33
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Banner: "and contributors" is just too long; try "et al"H. Peter Anvin2009-03-311-1/+1
| | | | | | | | | Impact: aestetics Change "and contributors" to "et al" so that the message actually fits on one line. This is unfortunate, but what can you do... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: Int13FuncsCnt is a constant, not a memory locationH. Peter Anvin2009-03-301-1/+1
| | | | | | | Impact: bug fix Int13FuncsCnt is a compile-time constant, not a memory location. This is a rather important distinction.
* Add "and contributors" to the copyright bannerH. Peter Anvin2009-03-211-1/+1
| | | | | Clarify that there are nowadays more copyright holders than just myself.
* memdisk: additional comments in memdisk.inc and postprocess.plShao Miller2009-03-212-15/+25
| | | | Just a sprinkling of comments adding further description to the code.
* Merge branch 'master' into memdisk-cdH. Peter Anvin2009-03-164-101/+314
|\
| * */Makefile: fixes for older versions of NASMH. Peter Anvin2009-03-161-3/+6
| | | | | | | | | | | | | | Deal with issues that made older versions of nasm: a) prevent "make spotless" from running b) generate bad dependencies (no final newline)
| * */Makefile: use -include when including dependenciesH. Peter Anvin2009-03-161-1/+1
| | | | | | | | This seems to have better behavior for "make spotless".
| * Revert "memdisk: memdisk16.asm needs %ifndef DEPEND around %include"H. Peter Anvin2009-03-161-3/+1
| | | | | | | | | | This reverts commit 8f3919c8f5dd37ccd3b7565d32ef1dac8b2522d5. Wrong fix.
| * memdisk: memdisk16.asm needs %ifndef DEPEND around %includeH. Peter Anvin2009-03-161-1/+3
| | | | | | | | | | Older versions of NASM puke if there is an %include of a non-existent file during dependency generation. Make it more forgiving.
| * memdisk: align .bss to a 16-byte boundary for better zeroing perfH. Peter Anvin2009-03-161-2/+2
| | | | | | | | | | Some CPUs really want a reasonable alignment for a rep;stosl, so give it to them...
| * memdisk: zero the .bss sectionH. Peter Anvin2009-03-163-3/+139
| | | | | | | | | | It is just too confusing to have a .bss section that isn't zeroed, to explicitly zero it.
| * memdisk: move the floppy disk geometry code in parallel with the MBR codeH. Peter Anvin2009-03-161-84/+81
| | | | | | | | | | Move the floppy disk geometry generation code into parallel with the MBR code, which pretty much mimics the previous behavior.
| * memdisk: don't key FAT vs MBR on the type of diskH. Peter Anvin2009-03-161-25/+29
| | | | | | | | | | | | | | | | We can't rely on the disk type to say if this is FAT vs MBR, since we haven't determined that yet. Thus, move the FAT test up before the MBR test; both are heuristic, but the FAT test has much less probability of false positives, and can be further tightened if needed.
| * memdisk: auto-detect large floppy geometry if it is FATH. Peter Anvin2009-03-161-40/+113
| | | | | | | | | | | | If a "large floppy" image is formatted with a FAT filesystem, we can use the headers in the FAT image to derive the geometry. This is nice and user-friendly, so do it that way.
* | memdisk-cd: Kill off Int13MaxFunc slot for installer handling EDD caseShao Miller2009-03-102-9/+1
| | | | | | | | | | | | The memdisk install code previously controlled EDD features by controlling how many INT 13 functions were available. Since we have EDD and non-EDD versions of the memdisk hooking code now, this is no longer needed.
* | MEMDISK: adjust descriptor table limitH. Peter Anvin2009-03-081-1/+1
| | | | | | | | | | The descriptor table limit was off by one. Not that it matters, but be picky about these sort of things.
* | MEMDISK: get rid of the WITH_EDD variableH. Peter Anvin2009-03-083-8/+3
| | | | | | | | | | | | With the creation of wrapper assembly scripts, there is no reason for the indirection of WITH_EDD -> EDD; we can just set the EDD variable directly.
* | memdisk varieties: Allow for multiple memdisk installable hooksShao Miller2009-03-085-20/+32
|/ | | | | | | | | | | | This patch "sets the stage" for the memdisk kernel to include different "installables": versions of the memdisk hooks. This patch splits the case of the EDD-compiled hook from the non-EDD-compiled hook. Both are available inside the kernel, and the kernel chooses which one to install based on the command-line. It's possible that other, slightly modified versions of the memdisk hook could be useful to have...
* MEMDISK: in safeint mode, don't bother testing for unchanged INT 15hsyslinux-3.73-pre4H. Peter Anvin2008-10-151-26/+14
| | | | | | | | | | | In safeint mode, don't bother testing for unchanged INT 15h. It points back at ourselves, anyway, and we end up doing, in the end, the same thing as the safeint stub would do. Furthermore, the test was broken for years, and so this is actually closer to what we originally tested. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: fix check for unchanged INT 15h handler in safeint modeSergey Vlasov2008-10-151-1/+1
| | | | | Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* MEMDISK: drop unnecessary newlineH. Peter Anvin2008-10-141-1/+1
| | | | | | Drop a newline we didn't need after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* MEMDISK: default to "safeint" modesyslinux-3.73-pre3H. Peter Anvin2008-10-141-18/+40
| | | | | | | | | | There is enough evidence that "safeint" is a decent compromise between The Right Thing[TM] and dealing with the reality of ultra-broken DOSen. Make it the default. Clean up some of the command-line parsing code and status printing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* e820: pre-initialize bufferH. Peter Anvin2008-10-131-0/+2
| | | | | | | | Pre-initialize the e820 buffer to all zero, except for the active bit; we have found that BIOSes will make assumptions about the pre-existing value of the buffer and this seems the most conservative value. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: updated Makefile rule for e820testH. Peter Anvin2008-10-131-2/+2
| | | | | | | Makefile rule for e820test that actually works. It's suboptimal, and that is just fine. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: make the e820 code compile for debugging againH. Peter Anvin2008-10-132-11/+19
| | | | | | Make it possible to build e820test again, to debug the e820 code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: make sure to ignore non-active rangesH. Peter Anvin2008-10-131-2/+5
| | | | | | | Skip non-active ranges when looking for a suitable chunk of memory for decompression. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memdisk: fix up new e820 codeH. Peter Anvin2008-10-131-3/+3
| | | | | | | Correct the assembly portion of the new e820 code, which had been left, in effect, half finished. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Support "extended attributes" for INT 15h, AX=E820hH. Peter Anvin2008-10-137-54/+87
| | | | | | | | | | | | | | | Some blithering idiot thought it was a good idea to introduce "extended attributes" for INT 15h, AX=E820h, and in doing so, breaking compatibility with ALL E820 users out there. F*cking morons. Implement handling of extended attributes in: - e820 parsing in the core - e820 parsing in libcom32 - e820 parsing *and proxying* in memdisk The latter is the really painful one. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Clean up embedded Makefile targets; fix build failureH. Peter Anvin2008-08-221-12/+1
| | | | | | 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-203-25/+32
| | | | | Cleanup and centralize the Makefile system even more. Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).
* gen-id: only truncate tags starting with syslinux-<version>-H. Peter Anvin2008-07-151-1/+1
| | | | | If git-describe comes up with a tag not starting with syslinux-<version>- then leave it as-is.
* Make version.mk optional, so cleaning commands worksyslinux-3.71-pre6H. Peter Anvin2008-07-071-1/+1
| | | | For cleaning commands, we need version.mk to be optional.
* Share the gen-id stuff between core and memdiskH. Peter Anvin2008-07-072-1/+15
| | | | Both core and memdisk wants to use the gen-id stuff, so let it.
* Centralize more of the version number machineryH. Peter Anvin2008-07-073-6/+8
| | | | Centralize more (most) of the version number machinery to version.pl.
* memdisk: install a DPT if needed in INT 1Eh; better zero-drive detectionH. Peter Anvin2008-07-033-15/+61
| | | | | | | | | Per the Interrupt list, treat INT 13 08 returning with CL=0 as a failure, meaning single drive only. If we find ourselves the only floppy drive, install a DPT into INT 1Eh. This appears to be needed for PC-DOS 7.0 to boot. This can be overridden with the "nodpt" option, and forced with the "dpt" option.
* memdisk/version.h: bump copyright yearH. Peter Anvin2008-07-031-1/+1
| | | | 2008, not 2007
* TEST: issue a null command to the KBC as part of A20-flippingsyslinux-3.70-pre19H. Peter Anvin2008-06-181-2/+16
| | | | | UHCI supposedly wants a null command (0FFh) sent to the KBC as part of the A20-flipping sequence. See if that works for us.
* fdgeo.pl: exit values; fix division by zeroH. Peter Anvin2008-06-101-0/+3
| | | | | Return exit values to go with the error messages; don't divide by zero in case of range error.
* Whitespace cleanupH. Peter Anvin2008-06-094-4/+3
|
* MEMDISK: algorithmic determination of floppy formatsH. Peter Anvin2008-06-072-19/+102
| | | | | Consider all disks < 4 MB to be floppies, and guess their geometry algorithmically.
* MEMDISK: Use aligning memcpy/memset, compile with -mregparm=3syslinux-3.70-pre14H. Peter Anvin2008-06-065-51/+168
| | | | | Use the aligning memcpy/memset from libcom32. Switch memdisk to compiling with -mregparm=3, except for the interfaces to assembly.
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-1/+1
| | | | | | | | 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.
* Fixed the various Makefiles so that SYSLINUX compiles on platforms with GCC ↵Stefan Bucur2008-05-121-1/+2
| | | | -fstack-protector flag enabled by default.