profile/ivi/syslinux.git
15 years agohdt: Shortening extension when using ISOLINUX
Erwan Velu [Mon, 13 Apr 2009 20:19:50 +0000 (22:19 +0200)]
hdt: Shortening extension when using ISOLINUX

Impact: When using ISOLINUX, we have to shorten the extension

Shortening extension when using ISOLINUX.
i.e: modules.pcimap is convertd to modules.pci

15 years agohdt: Opening console earlier
Erwan Velu [Mon, 13 Apr 2009 20:16:54 +0000 (22:16 +0200)]
hdt: Opening console earlier

Impact: Earlier printf are now possible

Prior to that commit, it was impossible to printf during paramaters
& syslinux checks

15 years agohdt: Detect syslinux earlier
Erwan Velu [Mon, 13 Apr 2009 19:49:00 +0000 (21:49 +0200)]
hdt: Detect syslinux earlier

Impact: Internal changes

Some parameters might be dependant on syslinux's version

15 years agohdt: 0.3.0
Erwan Velu [Mon, 13 Apr 2009 19:28:19 +0000 (21:28 +0200)]
hdt: 0.3.0

Impact: This commit ends the merge with pam's branch

CLI is improved and manage completion
Thx to pierre for that great work

15 years agoMerge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt...
Erwan Velu [Mon, 13 Apr 2009 18:54:22 +0000 (20:54 +0200)]
Merge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt-pierre into pam

Conflicts:
com32/hdt/hdt-cli.c

15 years agohdt: DEL must be handle as BACKSPACE
Pierre-Alexandre Meyer [Sat, 11 Apr 2009 17:50:30 +0000 (10:50 -0700)]
hdt: DEL must be handle as BACKSPACE

Impact: Better conformity to standards

To conform with serial lines, DEL must be handled as BACKSPACE
Using Ctrl+D to delete a char
Taken from http://www.gnu.org/software/bash/manual/html_node/Commands-For-Text.html
(cherry picked from commit 5be7f0228dea745aa8e1fe18036517675bbe8c1e)

15 years agoMerge branch 'master' into for-erwan
Pierre-Alexandre Meyer [Sat, 11 Apr 2009 17:46:38 +0000 (10:46 -0700)]
Merge branch 'master' into for-erwan

Conflicts:

com32/hdt/Makefile

15 years agoMerge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt...
Erwan Velu [Sat, 11 Apr 2009 07:25:55 +0000 (09:25 +0200)]
Merge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt-pierre into pam

15 years agoMerge commit 'hdt-erwan/master' into for-erwan
Pierre-Alexandre Meyer [Sat, 11 Apr 2009 01:49:24 +0000 (18:49 -0700)]
Merge commit 'hdt-erwan/master' into for-erwan

Conflicts:

com32/hdt/hdt-ata.c
com32/hdt/hdt-cli-pxe.c
com32/hdt/hdt-cli-vesa.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-common.c
com32/hdt/hdt-menu-pci.c

15 years agoVPD: Adding the Virtual Product Data detection
Erwan Velu [Fri, 10 Apr 2009 19:53:00 +0000 (21:53 +0200)]
VPD: Adding the Virtual Product Data detection

Impact: It's now possible to reach VPD's info

Calling vpd_decode() populate a VPD structure to display :
- VPD's base address
- Bios Build ID
- Bios Release Date
- Bios Version
- Box Serial Number
- Motherboard Serial Number
- Machine Type/Model
- Default Flash Filename

15 years agohdt: Fixing typo. Thx to dag.
Erwan Velu [Thu, 9 Apr 2009 19:53:25 +0000 (21:53 +0200)]
hdt: Fixing typo. Thx to dag.

Impact: Cosmetic

Typo error

15 years agoMerge commit 'syslinux-3.74'
H. Peter Anvin [Thu, 9 Apr 2009 18:46:19 +0000 (11:46 -0700)]
Merge commit 'syslinux-3.74'

15 years agogfxboot: parse DEFAULT keywork in syslinux config file syslinux-3.74
Christophe Fergeau [Thu, 9 Apr 2009 09:09:55 +0000 (11:09 +0200)]
gfxboot: parse DEFAULT keywork in syslinux config file

The gfxboot COM module currently ignores the DEFAULT entry set in
syslinux config file and always default to 0 instead. This patch parses
DEFAULT entries in the config file and set the default entry
accordingly.

Signed-off-by: Christophe Fergeau <cfergeau@mandriva.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoCall the next version 3.80
H. Peter Anvin [Wed, 8 Apr 2009 23:41:29 +0000 (16:41 -0700)]
Call the next version 3.80

The new shuffler machinery is a major enough change that it's probably
a good idea to bump the version number to 3.80.

15 years agoMerge branch 'new-shuffler'
H. Peter Anvin [Wed, 8 Apr 2009 23:38:25 +0000 (16:38 -0700)]
Merge branch 'new-shuffler'

15 years agohdt: clear memtest_label syslinux-3.74-pre21
Sebastian Herbszt [Wed, 8 Apr 2009 19:08:14 +0000 (21:08 +0200)]
hdt: clear memtest_label

Clear memtest_label in init_hardware().

15 years agocom32: the keyboard map size is in CX not in DX
H. Peter Anvin [Wed, 8 Apr 2009 23:17:55 +0000 (16:17 -0700)]
com32: the keyboard map size is in CX not in DX

Impact: fixes kbdmap.c32

The keyboard map size is passed in CX, not in DX.  Fix typo in
libcom32.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agogfxboot module: fix copyright notice
Sebastian Herbszt [Wed, 8 Apr 2009 19:02:52 +0000 (21:02 +0200)]
gfxboot module: fix copyright notice

Include copyright notices of reused code.

15 years agoNEWS: document gfxboot.com syslinux-3.74-pre20
H. Peter Anvin [Tue, 7 Apr 2009 22:40:24 +0000 (15:40 -0700)]
NEWS: document gfxboot.com

15 years agoGfxboot COMBOOT module
Sebastian Herbszt [Sun, 5 Apr 2009 21:19:49 +0000 (23:19 +0200)]
Gfxboot COMBOOT module

A COMBOOT module to interface to Steffen Winterfeldt's Gfxboot
graphical front end (http://gfxboot.sourceforge.net/).

15 years agoMerge commit 'hdt/master'
H. Peter Anvin [Mon, 6 Apr 2009 23:56:51 +0000 (16:56 -0700)]
Merge commit 'hdt/master'

15 years agoAdd back "install: all" to the com32 devel directories syslinux-3.74-pre19
H. Peter Anvin [Mon, 6 Apr 2009 23:38:28 +0000 (16:38 -0700)]
Add back "install: all" to the com32 devel directories

"make install" in the com32 directory currently installs the devel
environment, which should be build using the host toolchain... so make
it so.

15 years agoMakefiles: try to make "make install" do the right thing
H. Peter Anvin [Mon, 6 Apr 2009 23:33:43 +0000 (16:33 -0700)]
Makefiles: try to make "make install" do the right thing

One more attempt at getting semi-sanity to "make install".
Realistically, the install/netinstall/install-all/... needs to be
pushed into the com32 Makefiles, but this is at least a quick hack.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoImplement MENU SAVE; fix COM32 setadv function syslinux-3.74-pre18
H. Peter Anvin [Mon, 6 Apr 2009 22:19:21 +0000 (15:19 -0700)]
Implement MENU SAVE; fix COM32 setadv function

Implement MENU SAVE, which allows the menu system to retain the
previous selection from one boot to another.  In the process, fix the
syslinux_setadv() function.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: unbreak "make depend", fix make spotless
H. Peter Anvin [Mon, 6 Apr 2009 21:10:10 +0000 (14:10 -0700)]
core: unbreak "make depend", fix make spotless

cmdline.inc: Unbreak "make depend"
Makefile: fix "make spotless"

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoNEWS: document cmdline fix
H. Peter Anvin [Mon, 6 Apr 2009 21:02:04 +0000 (14:02 -0700)]
NEWS: document cmdline fix

15 years agoipappend: clean up ipappend code; add ipappend to plain cmdline
H. Peter Anvin [Mon, 6 Apr 2009 20:59:47 +0000 (13:59 -0700)]
ipappend: clean up ipappend code; add ipappend to plain cmdline

ipappend information is needed for the plain cmdline too, since it may
be used by linux.c32.  While we're at it, clean up the handling of
ipappend lines -- we can rather obviously use a loop for them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agohdt: Don't display unsupported modes
Erwan Velu [Mon, 6 Apr 2009 10:58:11 +0000 (12:58 +0200)]
hdt: Don't display unsupported modes

Impact: Prevent from displaying 0x0 modes

Some vesa bioses reports 0x0 modes, no need to display them

15 years agoProvide a shared MIME file for the LSS16 image format
Omair Eschkenazi [Sat, 4 Apr 2009 23:27:57 +0000 (16:27 -0700)]
Provide a shared MIME file for the LSS16 image format

Add a MIME file for the LSS16 image format.  Currently only included
in source, as it is somewhat unclear what the proper way to package
this thing is.

15 years agosyslinux.ld: fix comment syntax
H. Peter Anvin [Sat, 4 Apr 2009 23:08:47 +0000 (16:08 -0700)]
syslinux.ld: fix comment syntax

Fix build failure due to incorrect comment syntax in syslinux.ld.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemscan: adjust lower limit; saner handling of insane DOS memory sizes
H. Peter Anvin [Sat, 4 Apr 2009 23:05:32 +0000 (16:05 -0700)]
memscan: adjust lower limit; saner handling of insane DOS memory sizes

Adjust the lower limit of DOS memory to 0x510; with the last known
BIOS byte in use at 0x500 (and only then for Print Screen) this makes
sense.

If the DOS memory size is clearly insane, fall back to using the EBDA
address.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into new-shuffler
H. Peter Anvin [Sat, 4 Apr 2009 22:56:28 +0000 (15:56 -0700)]
Merge branch 'master' into new-shuffler

15 years agomemscan: protect 0-0x7c00 until the new shuffler is merged
H. Peter Anvin [Sat, 4 Apr 2009 22:55:26 +0000 (15:55 -0700)]
memscan: protect 0-0x7c00 until the new shuffler is merged

Mark the memory range 0-0x7c00 unavailable until the new shuffler code
is ready, at which point we can go for a tighter bound.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMakefile: install new MBR variants; NEWS: document syslinux-3.74-pre17
H. Peter Anvin [Sat, 4 Apr 2009 22:39:26 +0000 (15:39 -0700)]
Makefile: install new MBR variants; NEWS: document

Make the new MBR variants installables, and add to the NEWS file.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: fix comment syntax in memdisk.ld
H. Peter Anvin [Sat, 4 Apr 2009 22:36:37 +0000 (15:36 -0700)]
memdisk: fix comment syntax in memdisk.ld

Fix build failure due to incorrect comment syntax in memdisk.ld

15 years agoMerge branch 'ctrl-mbr'
H. Peter Anvin [Sat, 4 Apr 2009 22:33:29 +0000 (15:33 -0700)]
Merge branch 'ctrl-mbr'

15 years agombr: generate normal versions, force-80 versions, and ctrl-80 versions
H. Peter Anvin [Sat, 4 Apr 2009 22:32:24 +0000 (15:32 -0700)]
mbr: generate normal versions, force-80 versions, and ctrl-80 versions

Produce MBR variants with normal (DL) behavior, force to drive 80
behavior, and force to 80 on Ctrl pressed behavior.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoUpdate copyright notices
H. Peter Anvin [Sat, 4 Apr 2009 22:09:42 +0000 (15:09 -0700)]
Update copyright notices

Update copyright notices; add Intel copyright notices where
appropriate.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoUpdate copyright notices
H. Peter Anvin [Sat, 4 Apr 2009 22:07:09 +0000 (15:07 -0700)]
Update copyright notices

Update copyright notices; add Intel copyright notices where appropriate.

15 years agoMerge branch 'master' into new-shuffler
H. Peter Anvin [Sat, 4 Apr 2009 22:00:34 +0000 (15:00 -0700)]
Merge branch 'master' into new-shuffler

Conflicts:
com32/lib/syslinux/memmap.c

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoUpdate copyright notices; add Intel notices where appropriate
H. Peter Anvin [Sat, 4 Apr 2009 21:48:10 +0000 (14:48 -0700)]
Update copyright notices; add Intel notices where appropriate

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>
15 years agohdt: DEL must be handle as BACKSPACE
Erwan Velu [Sat, 4 Apr 2009 02:06:18 +0000 (04:06 +0200)]
hdt: DEL must be handle as BACKSPACE

Impact: Better conformity to standards

To conform with serial lines, DEL must be handled as BACKSPACE
Using Ctrl+D to delete a char
Taken from http://www.gnu.org/software/bash/manual/html_node/Commands-For-Text.html

15 years agoMerge commit 'hdt/master' syslinux-3.74-pre16
H. Peter Anvin [Fri, 3 Apr 2009 23:51:27 +0000 (16:51 -0700)]
Merge commit 'hdt/master'

15 years agolinux.c32: don't relocate the real-mode code *above* 0x90000
H. Peter Anvin [Fri, 3 Apr 2009 23:50:27 +0000 (16:50 -0700)]
linux.c32: don't relocate the real-mode code *above* 0x90000

Do not relocate the real-mode code above address 0x90000... that would
not be prudent.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agolinux.c32: make load_linux() support relocation
H. Peter Anvin [Fri, 3 Apr 2009 23:09:29 +0000 (16:09 -0700)]
linux.c32: make load_linux() support relocation

In the case where the preferred kernel locations are not available,
make load_linux() smart enough to be able to relocate the kernel if at
all possible.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agocom32: add _t to scan_memory_callback
H. Peter Anvin [Fri, 3 Apr 2009 22:08:44 +0000 (15:08 -0700)]
com32: add _t to scan_memory_callback

Change scan_memory_callback to scan_memory_callback_t

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agocom32: merge all memory map discovery to one file
H. Peter Anvin [Fri, 3 Apr 2009 22:02:37 +0000 (15:02 -0700)]
com32: merge all memory map discovery to one file

Merge the memory map discovery for malloc and the memory map discovery
for memmap into one file that scans memory and invokes a callback.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agohdt: Adding exit menu in menu mode
Erwan Velu [Fri, 3 Apr 2009 18:08:48 +0000 (20:08 +0200)]
hdt: Adding exit menu in menu mode

Impact: Users can now exit hdt :)

It's now possible to exit HDT properly. Thx to fcrozat report.

15 years agohdt: Fixing aligment in about menu
Erwan Velu [Fri, 3 Apr 2009 18:04:53 +0000 (20:04 +0200)]
hdt: Fixing aligment in about menu

Impact: cosmetic

Fixing contact in about mode

15 years agohdt: Fixing author name
Erwan Velu [Fri, 3 Apr 2009 18:01:17 +0000 (20:01 +0200)]
hdt: Fixing author name

Impact: cosmetic

Fixing author name

15 years agohdt: cursor pos must be uint
Erwan Velu [Thu, 2 Apr 2009 18:31:17 +0000 (20:31 +0200)]
hdt: cursor pos must be uint

Impact: Prevent warning while comparing with strlen() & co.

Cursor pos is usually compared with string pos, so it must be an uint

15 years agohdt: Implement DEL behavior in cli mode
Erwan Velu [Thu, 2 Apr 2009 18:23:38 +0000 (20:23 +0200)]
hdt: Implement DEL behavior in cli mode

Impact: Users can now use DEL

DEL now deletes the next char

15 years agoMerge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt...
Erwan Velu [Thu, 2 Apr 2009 17:32:34 +0000 (19:32 +0200)]
Merge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt-pierre into pam

15 years agohdt: Trim spaces in the parser
Pierre-Alexandre Meyer [Thu, 2 Apr 2009 17:08:08 +0000 (10:08 -0700)]
hdt: Trim spaces in the parser

Impact: Fix potential bugs when extra spaces are present

It is now possible to enter:

'  set      fooo      bar          baz      '

which will be understood as

'set fooo bar baz'

The real benefit is for the autocompletion:

'set   <TAB>'

does work.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agoMerge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt...
Erwan Velu [Thu, 2 Apr 2009 15:28:12 +0000 (17:28 +0200)]
Merge branch 'for-erwan' of ssh://erwan@terminus.zytor.com/pub/git/users/pam/hdt-pierre into pam

15 years agohdt: Autocomplete modes
Pierre-Alexandre Meyer [Thu, 2 Apr 2009 04:03:11 +0000 (21:03 -0700)]
hdt: Autocomplete modes

Impact: Add feature

Add modes in the list of potential matches when autocompleting.
For instance, 'px'<TAB> will autocomplete in 'pxe', which is an
alias for 'set mode pxe'.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix !!! BUG when exiting
Pierre-Alexandre Meyer [Thu, 2 Apr 2009 03:51:45 +0000 (20:51 -0700)]
hdt: Fix !!! BUG when exiting

Impact: Fix error messages

There is no cli_mode_descr for the exit mode. Add a condition not to
print a !!! BUG message if cli_mode_descr is NULL when exiting.

Misc.: fix messages. hdt_cli.mode is an integer, not a string.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agoNEWS: document new com32 memory management syslinux-3.74-pre15
H. Peter Anvin [Wed, 1 Apr 2009 20:50:58 +0000 (13:50 -0700)]
NEWS: document new com32 memory management

15 years agocom32: fix the argument order
H. Peter Anvin [Wed, 1 Apr 2009 20:25:04 +0000 (13:25 -0700)]
com32: fix the argument order

Impact: bug fix

Fix the order of arguments to a com32 program.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agocom32: make memory beyond the core HighMem available to malloc
H. Peter Anvin [Wed, 1 Apr 2009 20:20:24 +0000 (13:20 -0700)]
com32: make memory beyond the core HighMem available to malloc

Impact: should deal with memory holes more gracefully

Right now, if we find a memory hole, we simply don't use the memory
beyond that point.  This makes it possible for com32 modules to
use that memory.  After this, we should be able to add relocation
support to allow loading when the memory at 1 MB is unavailable.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoNEWS: fix typo
H. Peter Anvin [Wed, 1 Apr 2009 07:15:53 +0000 (00:15 -0700)]
NEWS: fix typo

15 years agoshuffler: zero-extend the proper register for shuffle list length
H. Peter Anvin [Wed, 1 Apr 2009 06:46:50 +0000 (23:46 -0700)]
shuffler: zero-extend the proper register for shuffle list length

The shuffle list length needs to be passed into the shuffler in ECX,
but when using the shuffler internally it is a 16-bit number, which
needs to be zero-extended.  Zero-extend the proper register, please!

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoshuffler: use lss for real-mode return in simple_pm_call
H. Peter Anvin [Wed, 1 Apr 2009 06:04:40 +0000 (23:04 -0700)]
shuffler: use lss for real-mode return in simple_pm_call

Instead of doing weird stuff with BP and the stack, just do an atomic
reload of SS:ESP by using the LSS instruction.

15 years agoshuffler: minor cleanups in bcopyxx.inc
H. Peter Anvin [Wed, 1 Apr 2009 06:04:08 +0000 (23:04 -0700)]
shuffler: minor cleanups in bcopyxx.inc

Minor cleanups: calling convention, documentation, etc.

15 years agoshuffler: reload EDI, ESI, ECX before calling shuffle_and_boot_raw
H. Peter Anvin [Wed, 1 Apr 2009 06:03:09 +0000 (23:03 -0700)]
shuffler: reload EDI, ESI, ECX before calling shuffle_and_boot_raw

comapi_cleanup can clobber registers, so reload EDI, ESI, ECX before
calling shuffle_and_boot_raw.

15 years agoshuffler: fix infinite loop in syslinux_memmap_find()
H. Peter Anvin [Wed, 1 Apr 2009 04:25:18 +0000 (21:25 -0700)]
shuffler: fix infinite loop in syslinux_memmap_find()

Fix an infinite loop in syslinux_memmap_find().

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agochain.c32: remove misleading comment
H. Peter Anvin [Wed, 1 Apr 2009 00:30:24 +0000 (17:30 -0700)]
chain.c32: remove misleading comment

Remove a never-implemented, misleading comment

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agoshuffle: use SMT_RESERVED for the forbidden region
H. Peter Anvin [Wed, 1 Apr 2009 00:29:20 +0000 (17:29 -0700)]
shuffle: use SMT_RESERVED for the forbidden region

If we're going to mark memory unusable, it's cleaner to mark it
SMT_RESERVED.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agochain.c32: remove loadbase < 0x7c00 hack
H. Peter Anvin [Tue, 31 Mar 2009 23:37:56 +0000 (16:37 -0700)]
chain.c32: remove loadbase < 0x7c00 hack

Remove the special hack for loadbase < 0x7c00.  We no longer need it,
since the shuffler will relocate appropriately by magic.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agoshuffler: make the new shuffler actually work
H. Peter Anvin [Tue, 31 Mar 2009 23:31:18 +0000 (16:31 -0700)]
shuffler: make the new shuffler actually work

Make the new shuffler actually work.  This includes changing
rllpack.inc to run in 32-bit mode (since simple_pm_call now switches
to 32-bit mode) and changing the new shuffler interface to move the
shuffle list before actually doing any work.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agohdt: Adding lib-ansi to manage ansi escape codes
Erwan Velu [Tue, 31 Mar 2009 19:28:05 +0000 (21:28 +0200)]
hdt: Adding lib-ansi to manage ansi escape codes

Impact: code is easier to read

Basic implementation of ansi escape codes. This make code easier to
read.

15 years agoshuffler: comboot interface to the new shuffler
H. Peter Anvin [Tue, 31 Mar 2009 16:54:31 +0000 (09:54 -0700)]
shuffler: comboot interface to the new shuffler

Impact: new feature

COMBOOT interface to the new shuffler; resurrect comapi_chainboot as
that functionality is still potentially relevant.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoBanner: "and contributors" is just too long; try "et al"
H. Peter Anvin [Tue, 31 Mar 2009 16:30:32 +0000 (09:30 -0700)]
Banner: "and contributors" is just too long; try "et al"

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>
15 years agoshuffer: make the new shuffler not pollute unrelated memory
H. Peter Anvin [Tue, 31 Mar 2009 16:25:27 +0000 (09:25 -0700)]
shuffer: make the new shuffler not pollute unrelated memory

Keep the shuffler from polluting memory outside its own "safe area".
This means being more clever about the relocation code, but it should
make it a lot easier to use for our own uses.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoshuffler: first cut of a simpler shuffle routine
H. Peter Anvin [Tue, 31 Mar 2009 15:59:00 +0000 (08:59 -0700)]
shuffler: first cut of a simpler shuffle routine

Impact: major restructuring

New shuffler routine which runs entirely in protected mode, unlike the
old one which would enter PM for the bcopy phase only.  This is not
only faster, but it greatly reduces the size of the shuffler "critical
area".  The interfaces to this new shuffler are not yet implemented,
so this is a non-functional checkpoint.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoaltmbr: an alternative MBR which ignores the active flag
H. Peter Anvin [Tue, 31 Mar 2009 01:17:05 +0000 (18:17 -0700)]
altmbr: an alternative MBR which ignores the active flag

Impact: new feature

Create an alternative MBR which takes a partition number in byte 439
instead of looking at the active flag.  This is useful when
dual-booting legacy operating systems which assume that their
particular partition must be the active partition.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agombr/*.S: use a symbolic constant for BIOS_kbdflags
H. Peter Anvin [Tue, 31 Mar 2009 00:53:09 +0000 (17:53 -0700)]
mbr/*.S: use a symbolic constant for BIOS_kbdflags

Impact: cleanup

Use a symbolic constant for BIOS_kbdflags instead of open-coding the
address.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agombr/*.S: if Ctrl is pressed, force the drive number to 0x80
H. Peter Anvin [Tue, 31 Mar 2009 00:38:44 +0000 (17:38 -0700)]
mbr/*.S: if Ctrl is pressed, force the drive number to 0x80

Impact: BIOS bug workaround, possible unexpected consequences?

Escape hatch for BIOSes which pass in garbage in DL: if the Ctrl key
is pressed during boot, force the drive number to 0x80.

Based on a patch by "TJ <ubuntu@tjworld.net>".

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agoFix the new kernel command-line parser syslinux-3.74-pre14
H. Peter Anvin [Mon, 30 Mar 2009 23:03:30 +0000 (16:03 -0700)]
Fix the new kernel command-line parser

Impact: bug fix

We were incorrectly looking at [ds:di] instead of [es:di] for
verifying that a command was properly terminated.  Fix.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
15 years agomemdisk: Int13FuncsCnt is a constant, not a memory location
H. Peter Anvin [Mon, 30 Mar 2009 20:37:09 +0000 (13:37 -0700)]
memdisk: Int13FuncsCnt is a constant, not a memory location

Impact: bug fix

Int13FuncsCnt is a compile-time constant, not a memory location.  This
is a rather important distinction.

15 years agohdt: skip_spaces is requires for completion
Erwan Velu [Mon, 30 Mar 2009 19:21:09 +0000 (21:21 +0200)]
hdt: skip_spaces is requires for completion

Impact: Completion works again

The previous commit broke the completion

15 years agohdt: renaming skipspace to remove_spaces
Erwan Velu [Mon, 30 Mar 2009 18:49:21 +0000 (20:49 +0200)]
hdt: renaming skipspace to remove_spaces

Impact: this function now remove trailing spaces too

We need to remove both begining & trailing spaces to insure a good match
while reading cli's input.

15 years agohdt: Don't print "Flags :" when there is no cpu flags
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 01:50:21 +0000 (18:50 -0700)]
hdt: Don't print "Flags :" when there is no cpu flags

Impact: Nicer output

The cpu module used to print a "Flags :" even if there was nothing to
print (using Qemu, I had a third Flags line empty). Fixing it.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Fix cpu summary alignment
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 01:32:48 +0000 (18:32 -0700)]
hdt: Fix cpu summary alignment

Impact: Nicer output

The fields in the cpu summary weren't aligned. Fixing it.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: NULLify autocomplete_tail on destroy
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 01:18:23 +0000 (18:18 -0700)]
hdt: NULLify autocomplete_tail on destroy

Impact: Fix memory corruption

autocomplete_tail needs to be NULLed when freeing the list of
autocomplete tokens or autocomplete_add_token_to_list can get really
confused when starting a new list.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Add "menu" command
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 00:59:39 +0000 (17:59 -0700)]
hdt: Add "menu" command

Impact: Switching back from CLI to menu is possible

The "menu" command allows the user to display the menu from the CLI.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Execute default callback only if no module is specified
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 00:37:05 +0000 (17:37 -0700)]
hdt: Execute default callback only if no module is specified

Impact: 'show' in hdt shows the main summary

Previously, 'show bidule' would execute the default callback for the
list of show modules. This is confusing. Let's execute it only if no
module is specified.

Note: same behaviour for 'set'.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Add "?" alias for help
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 00:24:35 +0000 (17:24 -0700)]
hdt: Add "?" alias for help

Impact: New alias

"?" is now mapped to help.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Add show_modes
Pierre-Alexandre Meyer [Mon, 30 Mar 2009 00:08:12 +0000 (17:08 -0700)]
hdt: Add show_modes

Impact: help more verbose w.r.t. modes

show modes (in hdt mode) will list the availables modes.
help (in any mode) will also list them.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agohdt: Add autocompletion support
Pierre-Alexandre Meyer [Sun, 29 Mar 2009 23:11:47 +0000 (16:11 -0700)]
hdt: Add autocompletion support

Impact: current_mode is global; cleanups

Autocompletion is now supported.

Without anything on the line, hitting TAB at the prompt once will show the list
of available commands. Hitting TAB a second time will start cycling
through these commands, replacing one by one on the prompt.

If the start of a command is entered, e.g. 'cl', the list of possible
matches is narrowed ('cl' will only yield 'clear').

The same behaviour exists with modules. Having entered 'show' on the
command line, the list of possible show modules will be presented.
Same for narrow searches: 'show s' in the hdt mode would only yield
'show summary' and 'show syslinux'.

Misc.: cleanups, enhanced some messages.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
15 years agopci: Rename get_module_name_from_pci_ids syslinux-3.74-pre12 syslinux-3.74-pre13
Erwan Velu [Sun, 29 Mar 2009 19:28:23 +0000 (21:28 +0200)]
pci: Rename get_module_name_from_pci_ids

Impact: none

Rename get_module_name_from_pci_ids to get_module_name_from_pcimap since
the module names are read from the modules.pcimap and not pci.ids file.

Signed-off-by: Sebastian Herbszt (herbszt@gmx.de)
15 years agohdt: Missing include for getkey
Pierre-Alexandre Meyer [Sun, 29 Mar 2009 17:19:47 +0000 (10:19 -0700)]
hdt: Missing include for getkey

Impact: Fix the build

more_printf now uses the proper includes

15 years agohdt: prevent unless disk's menu
Erwan Velu [Fri, 27 Mar 2009 21:03:24 +0000 (22:03 +0100)]
hdt: prevent unless disk's menu

Impact: none

No need to compute disk's menu if no disk are detected

15 years agohdt: Converting printf to more_printf
Erwan Velu [Fri, 27 Mar 2009 20:47:42 +0000 (21:47 +0100)]
hdt: Converting printf to more_printf

Impact: Improving display management

more_printf is better to manage output as it ask users to press return
when the content is too long

15 years agohdt: Adding memtest= boot parameter
Erwan Velu [Fri, 27 Mar 2009 18:04:00 +0000 (19:04 +0100)]
hdt: Adding memtest= boot parameter

Impact: memtest=<label> allow users to give another label name for the
memtest call

Prior to that version, memtest label was hardcoded to "memtest".
Now, "memtest" is the default label but could be overrided by users.

15 years agohdt: Adding PXE information on the booted pci device
Erwan Velu [Fri, 27 Mar 2009 17:40:59 +0000 (18:40 +0100)]
hdt: Adding PXE information on the booted pci device

Impact: Display which pci device is the one used for PXE

Sync with cli's behavior

15 years agohdt: Adding PXE information on the booted pci device
Erwan Velu [Fri, 27 Mar 2009 17:26:59 +0000 (18:26 +0100)]
hdt: Adding PXE information on the booted pci device

Impact: Display which pci device is the one used for PXE

Sync with cli's behavior

15 years agodoc: Adding more initrd details
Erwan Velu [Fri, 27 Mar 2009 15:21:21 +0000 (16:21 +0100)]
doc: Adding more initrd details

Signed-off-by: Gert Hulselmans (hulselmansgert@gmail.com)
15 years agodoc: Fixing typo
Erwan Velu [Fri, 27 Mar 2009 15:14:43 +0000 (16:14 +0100)]
doc: Fixing typo

Signed-off-by: Gert Hulselmans (hulselmansgert@gmail.com)
15 years agohdt: Fixing modules count for hdt mode
Erwan Velu [Thu, 26 Mar 2009 21:04:19 +0000 (22:04 +0100)]
hdt: Fixing modules count for hdt mode

Impact: "show hdt" command now works

We have 9 modules