aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hdt: 0.3.4syslinux-3.83-pre8hdt-0.3.4erwan2009-08-201-1/+1
| | | | | | Impact: New release 0.3.4 is now out !
* hdt: fix disklib displayPierre-Alexandre Meyer2009-08-202-2/+2
| | | | | | | We currently display the first sector after the end of an extended. Fix it (-1). Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* disklib: fix extended partition codePierre-Alexandre Meyer2009-08-201-12/+21
| | | | | | | | | | | gert1 reported some issues using disklib with HDT. As it turned out, the code that iterated through ebrs in an extended partition was broken: ebr offsets need to be relative to the start of that partition. Misc.: fix memory leak. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org> Signed-off-by: Erwan Velu <erwan.velu@free.fr>
* hdt: Fixing memory corruptionerwan2009-08-202-5/+5
| | | | | | | | | Impact: Improve stability In some case, sectors_to_size can return a 8 char long string like "1000 MiB". In such case, some buffer were corrupted. This is now fixed by a size[9] instead of size[8].
* Merge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux ↵erwan2009-08-1911-3591/+1387
|\ | | | | | | into origin/master
| * MEMDISK: generate map filessyslinux-3.83-pre7H. Peter Anvin2009-08-173-0/+3
| | | | | | | | | | | | Generate map files to make debugging less painful. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * memdisk: make the stack size configurableH. Peter Anvin2009-08-171-7/+29
| | | | | | | | | | | | | | Make it possible to configure the stack size on the command line, so that we can rule that out in case of problems. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * menu: initialize cm (current menu) before empty checkH. Peter Anvin2009-08-171-1/+2
| | | | | | | | | | | | | | | | | | The empty check in the menu system used "cm", but before "cm" had actually been initialized. Move the "cm" initialization earlier so we do the right thing here. Reported-by: CKSoon <cksoon79@yahoo.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge commit 'origin/master'H. Peter Anvin2009-08-142-1676/+1351
| |\
| | * Revert "Run Nindent on com32/include/pngconf.h"H. Peter Anvin2009-08-131-60/+61
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6361b71f87466877f8fd1273240e8fa4460f8d05. <pngconf.h> is part of libpng, it should never have been Nindented. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * Revert "Run Nindent on com32/include/png.h"H. Peter Anvin2009-08-131-1616/+1290
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ab7b6c3380cd9188edbc99693d5562dcca055317. <png.h> is part of libpng and hence externally maintained; it should not have been Nindented. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | menu: fix Ctrl-W (word erase) when editing a command lineH. Peter Anvin2009-08-131-1/+1
| |/ | | | | | | | | | | | | The Ctrl-W (word erase) key was broken: it would think the command line got longer, not shorter, resulting in havoc. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * zlib: remove unused sample programsH. Peter Anvin2009-08-102-888/+0
| | | | | | | | | | | | | | Remove unused sample programs (example.c, minigzip.c); we don' tuse them and they are just noise. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * zlib: kill gzio.cH. Peter Anvin2009-08-092-1018/+1
| | | | | | | | | | | | | | Remove gzio.c, which is a zlib-specific stdio-like interface. We implement this in the actual filesystem layer, which is much cleaner. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'pam/disklib-fixes'Erwan Velu2009-08-19521-31878/+34300
|\ \
| * | hdt: Remove extra more_printf callsPierre-Alexandre Meyer2009-08-051-12/+10
| | | | | | | | | | | | | | | | | | | | | Let's rather use string concatenation. Reported-by: Shao Miller <Shao.Miller@yrdsb.edu.on.ca> Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | gpllib: Introduce typedefs for callbacksPierre-Alexandre Meyer2009-08-052-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | typedefs are evil but useful for function pointers as it makes them more readable and maintainable. This fixes a bug by the way: we had void *callback(struct driveinfo *, struct part_entry *, int, int) where we should have had void (*callback)(struct driveinfo *, struct part_entry *, int, int) Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: Don't show partition header if not neededPierre-Alexandre Meyer2009-08-052-2/+6
| | | | | | | | | | | | | | | | | | | | | Don't blindly print the partition header: check if we are able to iterate through them first. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | hdt: Fix disk menu to use the new disklib interfacesPierre-Alexandre Meyer2009-08-053-32/+16
| | | | | | | | | | | | | | | | | | | | | Adapt the disk menu to use the new disklib interfaces. This fixes bugs related to the display of partition numbering and swsusp signature. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | 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-pre1syslinux-3.8xH. 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>