summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* hdt: Make the menu and cli use the new disk interfacesPierre-Alexandre Meyer2009-08-053-39/+23
| | | | | | | | | The disklib interfaces have changed (errno_disk introduced). Update these changes in hdt (nobody else use them). Misc: fix get_error declaration. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* gpllib: More errno fixesPierre-Alexandre Meyer2009-08-055-45/+45
| | | | | | | | * Fix header files due to previous commit * Prefix disk errnos with ED to avoid conflicts with classic errno * Fix swsusp code to use errno_disk Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* gpllib: Enhance MakefilePierre-Alexandre Meyer2009-08-051-6/+2
| | | | | | | Leverage Make built-ins rather than listing manually all objects files to compile. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* gpllib: Fix compilationPierre-Alexandre Meyer2009-08-051-0/+2
| | | | | | ata.c was missing the inttypes.h header. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* disklib: Change read/write interfacePierre-Alexandre Meyer2009-08-058-206/+164
| | | | | | | Get rid of the error pointer and use a errno-like error reporting mechanism. Intent is to make these more like the standard read/write system calls. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* disklib: Fix write_verify_sectorsPierre-Alexandre Meyer2009-08-051-1/+1
| | | | | | Compare the entire chunk (all sectors), not only the first one. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* Merge commit 'hpa/master' into for-erwanPierre-Alexandre Meyer2009-08-04499-31511/+33262
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/cmenu/libmenu/com32io.h com32/gplinclude/dmi/dmi.h com32/gplinclude/dmi/dmi_base_board.h com32/gplinclude/dmi/dmi_memory.h com32/gplinclude/dmi/dmi_system.h com32/gpllib/dmi/dmi.c com32/gpllib/dmi/dmi_memory.c com32/include/sys/pci.h com32/lib/pci/scan.c com32/modules/Makefile Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * NEWS: document isohybrid -id fixed.H. Peter Anvin2009-08-031-0/+1
| |
| * isohybrid: convert -id to a binary stringSteffen Winterfeldt2009-08-031-1/+1
| | | | | | | | | | Shouldn't 'isohybrid -id ID' write ID as 32bit number? Currently it ends up as string messing up the mbr.
| * memdisk: remove unnecessary %ifdefsyslinux-3.83-pre6H. Peter Anvin2009-08-021-4/+0
| | | | | | | | Remove an %ifdef that the macros take care of anyway.
| * memdisk: don't set CX:DX for INT 13h AH=15h for floppiesH. Peter Anvin2009-08-022-5/+54
| | | | | | | | | | | | | | | | | | Win98SE DOS apparently hangs if INT 13h, AH=15h returns the capacity in CX:DX for floppies... *unless* EDD is enabled. Confused yet? This patch also adds some more tracing framework. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * MEMDISK: additional EDD DPT FieldsMiller, Shao2009-08-021-2/+2
| | | | | | | | | | | | We incorrectly used "equ" instead of "dd" (or "db") for strings in memdisk.inc. Oops! My mistake in my 'freedos' branch. Silly mistake. - Shao
| * memdisk: correct the types for the EDD DPT, and write a real onesyslinux-3.83-pre5H. Peter Anvin2009-07-312-27/+41
| | | | | | | | | | | | | | Fix the sizes of some of the fields in the EDD DPT. Write a real one to the best of our ability. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * memdisk: don't write the EDD DPT unless we are in EDD mode...H. Peter Anvin2009-07-311-6/+8
| | | | | | | | | | | | | | | | | | | | Don't write the EDD DPT unless we're actually in EDD mode! Otherwise we end up corrupting memory beyond the defined code. This was the reason 5ca2764460883f5e9a5bd83db00f242ea1272e33 worked, by moving variables out of the corruption zone. Debugged-by: Shao Miller <Shao.Miller@yrdsb.edu.on.ca> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge commit 'andytim/freedos'H. Peter Anvin2009-07-302-0/+20
| |\
| | * [memdisk] Additional EDD Device Parameter Table fieldsShao Miller2009-07-312-0/+20
| | | | | | | | | | | | | | | | | | Some additional fields from the EDD-4 spec. draft for the Device Parameter Table have been added into the structure in setup.c and memdisk.inc. These were added in the hopes of resolving a FreeDOS MEMDISK bug on IBM ThinkPads.
| * | graphics: actually do 32-bit writes to VGAH. Peter Anvin2009-07-301-2/+2
| |/ | | | | | | | | | | Use "rep movsd" to copy data to VGA memory, not "rep movsb". Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * graphics: trivial optimization of old-style graphic modesyslinux-3.83-pre4H. Peter Anvin2009-07-301-24/+47
| | | | | | | | | | | | | | | | | | Trivially optimize the old-style graphics by using another level of temporary buffering in bitplane format, thereby enabling the use of rep movsd to write the contents to the screen. This can speed things up substantially in virtualization environments. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * NEWS: document Thinkpad fixsyslinux-3.83-pre3H. Peter Anvin2009-07-301-0/+2
| |
| * memdisk: move temporary variables away from the EDD data blockH. Peter Anvin2009-07-301-6/+6
| | | | | | | | | | | | | | | | | | | | Move a couple of variables away from the EDD data block. Without this change, FreeDOS doesn't boot on Thinkpads. Unfortunately, this should have been a null change, so it is really not clear why this happens. Stack overflows have been ruled out. Probably need to examine the FreeDOS kernel in some detail. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * memdisk: handle recursive INT 13h invocationH. Peter Anvin2009-07-301-12/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some systems, e.g. a lot of Thinkpads, invoke INT 13h recursively from within the stack itself. This is generally a bad idea as it re-runs any INT 13h hooks (including the ones that DOS installs!), but it should work. Keep a counter of recursive invocations and simply bypass the whole system including the DL shift if the invocation is recursive. With this, MS-DOS boots on a Thinkpad T61. FreeDOS is still broken, though, but apparently in a different manner... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * PXELINUX: allow filenames up to 251 characters longsyslinux-3.83-pre2H. Peter Anvin2009-07-283-1/+4
| | | | | | | | | | | | At least one users really need this, so be nice and provide it... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge commit 'syslinux-3.83-pre1'H. Peter Anvin2009-07-272-2/+2
| |\ | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/chain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * NEWS: document chain.c32 ISOLINUX fix.syslinux-3.83-pre1H. Peter Anvin2009-07-231-0/+1
| | |
| | * chain.c32: set DL properly when loaded from ISOLINUXH. Peter Anvin2009-07-231-2/+1
| | | | | | | | | | | | | | | | | | | | | When loaded from ISOLINUX, we still have a valid boot drive. Set it! This permits the use of chainloaded boot loaders. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | gfxboot: remove obsolete message regarding pxelinux supportSebastian Herbszt2009-07-181-1/+0
| | | | | | | | | | | | | | | | | | PXELINUX is supported by the gfxboot module. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * | gfxboot: parse TIMEOUT keywordSebastian Herbszt2009-07-181-2/+73
| | | | | | | | | | | | | | | | | | Parse the TIMEOUT keyword from the config file and pass it to gfxboot core. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * | gfxboot: only call gfxboot core if labels are specifiedSebastian Herbszt2009-07-181-0/+9
| | | | | | | | | | | | | | | | | | Only call gfxboot core if labels are specified in the config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * | gfxboot: display error message if bootlogo file not foundSebastian Herbszt2009-07-181-0/+9
| | | | | | | | | | | | | | | | | | Display an error message if the user specified bootlogo file is not found. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * | gfxboot: change handling of keywordsSebastian Herbszt2009-07-181-23/+34
| | | | | | | | | | | | | | | | | | Makes handling of keywords more flexible. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
| * | dosutil/Makefile: more complete structureH. Peter Anvin2009-07-051-8/+20
| | | | | | | | | | | | | | | | | | More complete and consistent structure for dosutil/Makefile. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dosutil: update mdiskchk, add MakefileH. Peter Anvin2009-07-054-20/+38
| | | | | | | | | | | | | | | | | | | | | | | | Update mdiskchk and add a Makefile. Note that since this needs OpenWatcom to compile, we still check in the binary file (which is quite small, anyway.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Create a dosutil subdirectory and move mdiskchk thereH. Peter Anvin2009-06-262-0/+0
| | | | | | | | | | | | | | | | | | | | | DOS utilities aren't really "samples". Create a dedicated "dosutil" directory, and move mdiskchk there for now. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | extlinux: remove duplicate "const char *program;"Gilles Espinasse2009-06-191-2/+0
| | | | | | | | | | | | Remove redundant declaration.
| * | Merge branch 'syslinux-3.8x'H. Peter Anvin2009-06-143-4/+25
| |\ \ | | |/
| | * NEWS: document chainloading fixH. Peter Anvin2009-06-141-0/+2
| | |
| | * PXELINUX: when chaining an NBP, restore *all* registersH. Peter Anvin2009-06-141-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | On at least ASUS A8N-E, unless *all* registers are restored to pre-PXE status, localboot doesn't work. We were clobbering DS, ESI and EDX when chainloading an NBP, which meant that localboot wouldn't work in the chainloaded NBP. Fix this. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * bootsect: zero memory above a chainloaded boot sector/NBPH. Peter Anvin2009-06-143-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | Windows RIS has been reported to make inappropriate use of data found in uninitialized memory. To avoid that, clear memory between a chainloaded boot sector or NBP and Free Base Memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | com32.h: cleanups, make OFFS_VALID() take the pointer size into accountH. Peter Anvin2009-06-091-9/+20
| | | | | | | | | | | | | | | | | | | | | | | | Clean up some of the constructs in com32.h, and make OFFS_VALID() take the pointer type into account for the range check -- the whole object needs to fit within the segment. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | memdisk: don't use the stack before bootstrapH. Peter Anvin2009-06-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | Under some certain circumstances, it might not be safe to use the stack as it was set up, so use a jump instead of a call to invoke the bootstrap. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | Merge commit 'syslinux-3.82'H. Peter Anvin2009-06-095-15/+39
| |\ \ | | |/ | | | | | | | | | | | | | | | Conflicts: com32/menu/menumain.c Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * pxelinux: actually stop parsing on a null optionsyslinux-3.82H. Peter Anvin2009-06-091-1/+2
| | | | | | | | | | | | | | | | | | | | | Stop the OACK parsing on a null option, even if it isn't the very first option. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * pxelinux: revert to using TFTP error 8H. Peter Anvin2009-06-091-1/+2
| | | | | | | | | | | | | | | | | | | | | The main reason for ERROR is OACK parsing failure, so revert to using error code 8 (but a fixed text error.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * pxelinux: cleaner test for OACK trailing null bytesH. Peter Anvin2009-06-091-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of looking for a string of null bytes at the end of the OACK string, simply abort parsing if we run into a null byte where an option is expected; either we are seeing junk at the end of the packet, or we are hopelessly confused about how to make sense of the rest of the packet -- in either case, ignoring is the "liberal" option. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * PXELINUX: handle OACK packets with extra NULs, cleaner TFTP errorsyslinux-3.82-pre5H. Peter Anvin2009-06-082-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are apparently TFTP servers in the field which will send OACK packets with extra NUL bytes appended at the end. If we find an OACK packet where the only thing left at some point during processing is NULs, then just consider the packet processed. We have reported all TFTP protocol errors as "tsize required", which is definitely not true anymore. Change error code to 0 (undefined) and the error string to "TFTP error". When this code gets converted to C we'll do better. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * core: prevent buggy INT 13h from leaving IF=0syslinux-3.82-pre4H. Peter Anvin2009-06-042-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | If it can happen for CD-ROM BIOSes, it can probably happen elsewhere, too; make sure we don't leave interrupts disabled after broken INT 13h calls. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * simple menu: make ONTIMEOUT work with MENU HIDDENSergey Vlasov2009-06-042-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The command invoked when no keys were pressed for the specified time (ONTIMEOUT) may be different from the menu item initially selected when the menu is displayed (DEFAULT or MENU DEFAULT). Unfortunately, this did not work together with MENU HIDDEN (which is exactly the case when having a separate ONTIMEOUT command makes the most sense). Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | memdisk: additional cleanupsH. Peter Anvin2009-06-076-88/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Additional stylistic cleanups. Rename "syscall" to "intcall" (we can't call it __intcall without clashing with com32.h); use macros instead of copying variables to different places with only the type being different. Also, only change the rm/pm jump instructions when actually relocating the code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | memdisk: add missing memmove.SH. Peter Anvin2009-06-071-0/+139
| | | | | | | | | | | | | | | | | | We need memmove.S in the memdisk directory... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | memdisk: minor cleanupsH. Peter Anvin2009-06-076-58/+71
| | | | | | | | | | | | | | | | | | | | | Minor cleanups to the source base; make die() also print an error message and move die() into conio.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>