profile/ivi/syslinux.git
15 years agoWarn that timeout bypasses MENU PASSWD
H. Peter Anvin [Sat, 28 Feb 2009 18:46:59 +0000 (10:46 -0800)]
Warn that timeout bypasses MENU PASSWD

15 years agoYEAR is a number, not a string
H. Peter Anvin [Fri, 27 Feb 2009 22:33:13 +0000 (14:33 -0800)]
YEAR is a number, not a string

The macro YEAR is a number, not a string, so we have to use the
asciidec macro.

15 years agopxelinux: abstract the handling of PXENV+ and !PXE
H. Peter Anvin [Fri, 27 Feb 2009 19:59:28 +0000 (11:59 -0800)]
pxelinux: abstract the handling of PXENV+ and !PXE

Make the handling of PXENV+ versus !PXE simpler by abstracting the
differences: push the various fields to the stack in a common order
and then process them in common code.

15 years agoUse YEAR, not the obsolete macro year
H. Peter Anvin [Fri, 27 Feb 2009 19:55:23 +0000 (11:55 -0800)]
Use YEAR, not the obsolete macro year

15 years agoisohdpfx: work around gas/ld miscompilation
H. Peter Anvin [Fri, 27 Feb 2009 15:48:07 +0000 (07:48 -0800)]
isohdpfx: work around gas/ld miscompilation

Some, unknown, version of gas or ld miscompiles a relative jump to an
absolute symbol, resulting in a broken isohybrid.  Implement a
workaround for it by using a far jmp, which is absolute.  Fortunately,
the isohybrid prefix is one of the very few boot sectors we have which
isn't short on space.

15 years agoRevert "bcopy32: move descriptor count into ecx after reload"
H. Peter Anvin [Fri, 27 Feb 2009 04:44:22 +0000 (20:44 -0800)]
Revert "bcopy32: move descriptor count into ecx after reload"

This reverts commit 8b9d34885d8a9d5f7e9da6fbc75735ce1a0c945b.

The count here *is* kept in eax, not in ecx.

15 years agogPXE: remove obsolete and useless file
H. Peter Anvin [Thu, 26 Feb 2009 04:58:12 +0000 (20:58 -0800)]
gPXE: remove obsolete and useless file

15 years agobcopy32: move descriptor count into ecx after reload
H. Peter Anvin [Tue, 24 Feb 2009 23:37:24 +0000 (15:37 -0800)]
bcopy32: move descriptor count into ecx after reload

After having reloaded the descriptor buffer, we divide the byte count
to get a descriptor count.  That descriptor count belongs in ECX, not
in EAX.

15 years agopxelinux: workaround for old versions of NASM
H. Peter Anvin [Sun, 22 Feb 2009 04:49:08 +0000 (20:49 -0800)]
pxelinux: workaround for old versions of NASM

Old versions of NASM would miscompile forward EQU references.  In this
case, fixing that problem is easy, so just do it.

15 years agoentrydump: trivial program to probe PXE entry conditions
H. Peter Anvin [Thu, 19 Feb 2009 05:36:59 +0000 (21:36 -0800)]
entrydump: trivial program to probe PXE entry conditions

Small debugging hack program to probe the PXE stack entry
conditions.  This is mostly useful when developing a PXE stack,
but might possibly be handy for finding workarounds for a stack,
too.

15 years agosyslinux_derivative_info(): use the buffer we already have
H. Peter Anvin [Thu, 19 Feb 2009 05:11:55 +0000 (21:11 -0800)]
syslinux_derivative_info(): use the buffer we already have

Use the data buffer already set aside for syslinux_derivative_info().

15 years agoConstructed data objects can't be common; hack derivative_info
H. Peter Anvin [Thu, 19 Feb 2009 05:08:56 +0000 (21:08 -0800)]
Constructed data objects can't be common; hack derivative_info

- Constructed data objects can't be common.  Earlier version of
  gcc didn't if the objects were explicitly listed extern, but
  newer ones need an explicit __attribute__((nocommon)) or
  -fno-common.

- Make syslinux_derivative_info() save the entire reply.

15 years agogetcwd.c: need <string.h>
H. Peter Anvin [Thu, 19 Feb 2009 05:07:56 +0000 (21:07 -0800)]
getcwd.c: need <string.h>

getcwd.c needs <string.h>

15 years agopxelinux: InitStack is only 16-bit seg:off
H. Peter Anvin [Wed, 18 Feb 2009 23:29:30 +0000 (15:29 -0800)]
pxelinux: InitStack is only 16-bit seg:off

15 years agopxelinux: simplify the detection of the API structure
H. Peter Anvin [Wed, 18 Feb 2009 23:27:24 +0000 (15:27 -0800)]
pxelinux: simplify the detection of the API structure

Simplify some of the code in the detection of the API structure.
Based on things discovered while porting this code to gPXE.

15 years agokbdmap.c: clean up stealth whitespace
H. Peter Anvin [Wed, 18 Feb 2009 23:11:51 +0000 (15:11 -0800)]
kbdmap.c: clean up stealth whitespace

15 years agoSimple "cmd" module to issue a CLI command syslinux-3.74-pre1
Michael Brown [Wed, 18 Feb 2009 04:34:51 +0000 (20:34 -0800)]
Simple "cmd" module to issue a CLI command

A simple "cmd" COM32 module, which only echoes a CLI command.  This is
mostly useful when running on an alternate CLI, e.g. on top of the
native gPXE COMBOOT interface.

15 years agoUpdate gPXE to version 0.9.6+ 277b84c6e7d49f3cf01c855007f591de8c7cb75f
H. Peter Anvin [Wed, 18 Feb 2009 04:17:17 +0000 (20:17 -0800)]
Update gPXE to version 0.9.6+ 277b84c6e7d49f3cf01c855007f591de8c7cb75f

Update gPXE to version 0.9.6+, from commit
277b84c6e7d49f3cf01c855007f591de8c7cb75f in the main gPXE repository.

The only differences is src/config/general.h which has a few protocols
added, and src/arch/i386/prefix/boot1a.S which was called boot1a.s in
the upstream repository.

15 years agosyslinux.txt: document -r (for RAID) option and bootsecfile
Vicente Jimenez Aguilar [Tue, 17 Feb 2009 09:30:01 +0000 (10:30 +0100)]
syslinux.txt: document -r (for RAID) option and bootsecfile

Document the new -r (for RAID) option and bootsecfile as pointed out
by Gert Hulselmans.

-r (RAID) option is described correctly in the man page, so I cut and
paste this description here.

bootsecfile parameter perhaps needs more explanation.

15 years agodoc/comboot.txt: update to reflect dir branch now in mainline
H. Peter Anvin [Tue, 17 Feb 2009 06:53:49 +0000 (22:53 -0800)]
doc/comboot.txt: update to reflect dir branch now in mainline

The "dir" branch has been promoted to mainline, so make the
documentation reflect that.

15 years agoMerge branch 'dir'
H. Peter Anvin [Tue, 17 Feb 2009 06:52:01 +0000 (22:52 -0800)]
Merge branch 'dir'

15 years agopxelinux: compactify the getting cached packets message
H. Peter Anvin [Tue, 17 Feb 2009 05:11:36 +0000 (21:11 -0800)]
pxelinux: compactify the getting cached packets message

Slightly compactify the getting cached packets messages, by putting
them all on one line.

15 years agopxelinux: Minimum size for PXENV+ is 0x28 bytes
H. Peter Anvin [Tue, 17 Feb 2009 05:02:23 +0000 (21:02 -0800)]
pxelinux: Minimum size for PXENV+ is 0x28 bytes

The minimum size for the PXENV+ structure is 0x28 bytes (for PXE
1.x/2.0); the size will be 0x2C if the !PXE pointer is provided.

15 years agopxelinux: clean up and correct the entry point search
H. Peter Anvin [Tue, 17 Feb 2009 04:54:39 +0000 (20:54 -0800)]
pxelinux: clean up and correct the entry point search

Clean up and bug fixes of the entry point search.  Verify that all
methods work, and print the one we eventually used.

15 years agoCOM32 module: Read-Only shell
Gene Cumm [Sun, 15 Feb 2009 22:26:37 +0000 (17:26 -0500)]
COM32 module: Read-Only shell

Well, here's the read-only shell (rosh) that I've been working on.
It's functional but still quite rough.  My primary intention of
posting it at this time is such that people have an easy way to
demonstrate to themselves that the library calls I made work.

This should apply as a patch to the head of the "dir" branch and the
patch for c_cflag/c_lflag.  The patch is only needed for Linux(without
it, segfaults will occur).  I've designed it to compile as a COM32
module and Linux binary when using GNU C (as Syslinux currently
requires GNU C, if I read the Makefiles correctly).

15 years agoMerge branch 'master' into dir
H. Peter Anvin [Mon, 16 Feb 2009 00:35:11 +0000 (16:35 -0800)]
Merge branch 'master' into dir

15 years agoCOM32 libutil: Fix error in flags in console_ansi_std(void)
Gene Cumm [Sun, 15 Feb 2009 22:24:49 +0000 (17:24 -0500)]
COM32 libutil: Fix error in flags in console_ansi_std(void)

ICANON and ECHO were applied to the control flags not local flags.

If ICANON or ECHO were applied to a serial port on Linux on the x86
architecture, this would change the serial ports baud rate.

From my /usr/include/bits/termios.h (select in-order lines):
/* c_cflag bit meaning */
#define  B150 0000005
#define  B300 0000007
#define  B9600 0000015
#define  B38400 0000017
/* c_lflag bits */
#define ICANON 0000002
#define ECHO 0000010

The different baud rates are defined here.  If someone set the baud
rate to 9600 and set ICANON on c_cflag, it should change the baud rate
to 38400, dropping communication.  Another example is if someone set
the baud rate to 150 the set ICANON and ECHO on c_cflag, it should
change the baud to 38400.  If I am interpreting the rest of the file
correctly, a bitmask covering all of the bits used in c_cflag for the
baud rate is 0010017.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoifcpu64: fix handing with less than three arguments
H. Peter Anvin [Mon, 16 Feb 2009 00:32:12 +0000 (16:32 -0800)]
ifcpu64: fix handing with less than three arguments

Due to a silly coding error, when passed with only two arguments we
would use them in order 1 -- 2 -- 1 instead of 1 -- 2 -- 2 as was
intended.  Fix.

Reported-by: Luciano Miguel Ferreira Rocha <strange@nsk.no-ip.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agofind-mingw: handle the names used in Fedora 10+
H. Peter Anvin [Thu, 12 Feb 2009 00:44:17 +0000 (16:44 -0800)]
find-mingw: handle the names used in Fedora 10+

Handle the names used in Fedora, now when Fedora includes MinGW32 in
the standard distribution.

15 years agoldlinux: move es manipulation into ucs2_to_cp
H. Peter Anvin [Wed, 11 Feb 2009 06:39:52 +0000 (22:39 -0800)]
ldlinux: move es manipulation into ucs2_to_cp

If currently the only caller of ucs2_to_cp wants to use ES, we might
as well move the ES set/restore into ucs2_to_cp.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoldlinux: readdir: trivial optimization
H. Peter Anvin [Wed, 11 Feb 2009 06:37:16 +0000 (22:37 -0800)]
ldlinux: readdir: trivial optimization

Trivially optimize the readdir code

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoldlinux: fix interface to ucs2_to_cp
H. Peter Anvin [Wed, 11 Feb 2009 06:22:23 +0000 (22:22 -0800)]
ldlinux: fix interface to ucs2_to_cp

The interface to ucs2_to_cp has changed slightly, it now returns ZF=0
on failure, not CF=1.

15 years agoMerge branch 'charset' into dir
H. Peter Anvin [Wed, 11 Feb 2009 06:17:12 +0000 (22:17 -0800)]
Merge branch 'charset' into dir

15 years agoCOM32 API: Add functions for directory use
Gene Cumm [Wed, 11 Feb 2009 03:18:18 +0000 (22:18 -0500)]
COM32 API: Add functions for directory use

COM32: Add directory functions getcwd(), opendir(), readdir() and closedir().

This depends on the patch that I just submitted creating the COMBOOT API calls.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoFix minor errors in keytab-lilo
Olivier Korn [Tue, 10 Feb 2009 10:23:08 +0000 (11:23 +0100)]
Fix minor errors in keytab-lilo

H. Peter Anvin wrote:
> Thanks for the warning.  I have updated keytab-lilo in the git tree with
> keytab-lilo.pl from LILO 22.8.

Thank you H. Peter. I just checked it and the new version doesn't work
"out of the box". It says...
syntax error at keytab-lilo line 4, near "eval "
Execution of keytab-lilo aborted due to compilation errors.

Furthermore, after correcting lines 3 and 4 (which are responsible of
the above error), keyboard maps can't be found (by loadkeys utility)
because of an added bad extension (.map instead of .kmap).

Attached is a patch I wrote in order to make it fully work (apply it
against the version of keytab-lilo which is now in the git tree).

15 years agoUpdate keytab-lilo from LILO 22.8
H. Peter Anvin [Tue, 10 Feb 2009 06:53:35 +0000 (22:53 -0800)]
Update keytab-lilo from LILO 22.8

15 years agoCOMBOOT API: Add calls for directory functions; Implement for FAT
Gene Cumm [Sun, 8 Feb 2009 14:36:59 +0000 (09:36 -0500)]
COMBOOT API: Add calls for directory functions; Implement for FAT

COMBOOT API: Add calls for directory functions; Implement most only
for FAT (SYSLINUX).

Uses INT 22h AX= 001Fh, 0020h, 0021h and 0022h to prepare for the
COM32 C functions getcwd(), opendir(), readdir(), and closedir(),
respectively.  INT22h, AX=001Fh will return a valid value for all
variants.  INT22h, AX= 0020h, 0021h, and 0022h are only implemented
for SYSLINUX while other variants will call comapi_err for these 3.

Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agokbdmap.c32: new module to load a keyboard map dynamically
H. Peter Anvin [Wed, 4 Feb 2009 06:09:45 +0000 (22:09 -0800)]
kbdmap.c32: new module to load a keyboard map dynamically

Load a new keyboard map dynamically

15 years agoAdd comboot interface to access the keyboard remapping table
H. Peter Anvin [Wed, 4 Feb 2009 05:41:21 +0000 (21:41 -0800)]
Add comboot interface to access the keyboard remapping table

Add a comboot interface to access the keyboard remapping table,
which can be used for either querying or changing the keyboard
map.

15 years agoparseconfig.inc: use "skipline" where appropriate
H. Peter Anvin [Sat, 31 Jan 2009 22:58:17 +0000 (14:58 -0800)]
parseconfig.inc: use "skipline" where appropriate

Use "skipline" where appropriate instead of reading into the trackbuf.

15 years agoMake sure we eat the input when ignoring a DEFAULT command
H. Peter Anvin [Sat, 31 Jan 2009 22:53:25 +0000 (14:53 -0800)]
Make sure we eat the input when ignoring a DEFAULT command

Make sure we eat the rest of the input line when we encounter a
DEFAULT command that is to be ignored because we have a UI command
already.  Do this by making skipline a subroutine.

Based on a patch by Sebastian Hebszt <herbszt@gmx.de>, although
substantially modified.

15 years agoMerge branch 'ui'
H. Peter Anvin [Mon, 26 Jan 2009 02:53:04 +0000 (18:53 -0800)]
Merge branch 'ui'

Conflicts:
NEWS

15 years agoCall the next version 3.74
H. Peter Anvin [Mon, 26 Jan 2009 02:52:01 +0000 (18:52 -0800)]
Call the next version 3.74

15 years agoBump copyright year to 2009 syslinux-3.73
H. Peter Anvin [Mon, 26 Jan 2009 02:20:17 +0000 (18:20 -0800)]
Bump copyright year to 2009

15 years agoDocument the config.c32 module
H. Peter Anvin [Mon, 26 Jan 2009 02:13:41 +0000 (18:13 -0800)]
Document the config.c32 module

15 years agoReorganize the codepage handling to allow ucs2 -> codepage conversion
H. Peter Anvin [Mon, 26 Jan 2009 01:23:32 +0000 (17:23 -0800)]
Reorganize the codepage handling to allow ucs2 -> codepage conversion

Reorganize the codepage handling to make it easier to do ucs2 ->
codepage conversion, this will be used for a future directory lister.

15 years agoMerge branch 'master' into ui
H. Peter Anvin [Mon, 26 Jan 2009 01:13:43 +0000 (17:13 -0800)]
Merge branch 'master' into ui

15 years agoconfig.c32: new module to just load a configuration file
H. Peter Anvin [Mon, 26 Jan 2009 01:10:39 +0000 (17:10 -0800)]
config.c32: new module to just load a configuration file

Trivial module to load a new configuration file from the command
line.

15 years agoFix the new "UI" directive
Sebastian Herbszt [Sun, 14 Dec 2008 17:35:07 +0000 (18:35 +0100)]
Fix the new "UI" directive

The new directive doesn't seem to work here. Looks like DefaultLevel is never
changed:

core/parseconfig.inc:pc_default:        cmp ax,[DefaultLevel]
core/parseconfig.inc:DefaultLevel       dw 0                    ; The current level of default
core/ui.inc:            cmp word [DefaultLevel],1       ; Active UI statement?

15 years agoAdd new "UI" directive instead of abusing the DEFAULT directive
H. Peter Anvin [Thu, 11 Dec 2008 22:59:36 +0000 (14:59 -0800)]
Add new "UI" directive instead of abusing the DEFAULT directive

Add a new "UI" directive to specify a user interface module, instead
of abusing the DEFAULT directive.  This allows the DEFAULT directive
to be used for setting the default, even when the menu system is
enabled.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoPXELINUX: local domain is option 15, not option 16 syslinux-3.73-pre7
H. Peter Anvin [Mon, 1 Dec 2008 21:22:46 +0000 (13:22 -0800)]
PXELINUX: local domain is option 15, not option 16

The local domain name is option 15, not option 16.  Fix.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore/Makefile: fix dependency generation with old versions of NASM
H. Peter Anvin [Mon, 1 Dec 2008 21:21:47 +0000 (13:21 -0800)]
core/Makefile: fix dependency generation with old versions of NASM

Fix dependency generation with certain old versions of NASM, which
omitted the '\n' between dependency lines.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomboot.c: prefer ELF header over multiboot header syslinux-3.73-pre6
Ralf Ertzinger [Mon, 20 Oct 2008 16:35:36 +0000 (18:35 +0200)]
mboot.c: prefer ELF header over multiboot header

If a loaded kernel is in ELF format and contains a multiboot header indicating
valid relocation information, prefer the informations from the ELF header.
This is in violation of the Multiboot spec, but it's the way GRUB does
things and Solaris kernels rely on this behaviour.

Signed-of-by: Ralf Ertzinger <ralf@skytale.net>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomboot.c32: add <stdint.h> and <stdbool.h> syslinux-3.73-pre5
H. Peter Anvin [Sun, 19 Oct 2008 21:23:03 +0000 (14:23 -0700)]
mboot.c32: add <stdint.h> and <stdbool.h>

We need <stdbool.h>; we might as well add <stdint.h> as well.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: Document mboot.c32 -solaris
H. Peter Anvin [Sun, 19 Oct 2008 21:21:31 +0000 (14:21 -0700)]
NEWS: Document mboot.c32 -solaris

16 years agomboot.c32: reorganize print messages
H. Peter Anvin [Sun, 19 Oct 2008 21:20:53 +0000 (14:20 -0700)]
mboot.c32: reorganize print messages

Reorganize the mboot.c32 Solaris print messages slightly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomboot.c32: change DHCP_ACK_SIZE to 2048
H. Peter Anvin [Sun, 19 Oct 2008 21:16:32 +0000 (14:16 -0700)]
mboot.c32: change DHCP_ACK_SIZE to 2048

Change DHCP_ACK_SIZE to 2048 just to prevent some systems from doing
stupid things.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomboot.c32: add Solaris mode
Ralf Ertzinger [Sun, 19 Oct 2008 21:08:27 +0000 (14:08 -0700)]
mboot.c32: add Solaris mode

Add a "Solaris" mode to mboot.c32, which mimics a nonstandard
extension to Multiboot used by Solaris' pxeboot program.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMEMDISK: in safeint mode, don't bother testing for unchanged INT 15h syslinux-3.73-pre4
H. Peter Anvin [Wed, 15 Oct 2008 15:52:54 +0000 (08:52 -0700)]
MEMDISK: in safeint mode, don't bother testing for unchanged INT 15h

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>
16 years agomemdisk: fix check for unchanged INT 15h handler in safeint mode
Sergey Vlasov [Wed, 15 Oct 2008 11:39:54 +0000 (15:39 +0400)]
memdisk: fix check for unchanged INT 15h handler in safeint mode

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agocom32: make _Exit just an ordinary symbol
H. Peter Anvin [Wed, 15 Oct 2008 01:05:28 +0000 (18:05 -0700)]
com32: make _Exit just an ordinary symbol

Make _Exit just an ordinary symbol which aliases _exit.  This avoids
some versions of gcc complaining about the inline, which is rather
unnecessary anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoOlder binutils wants parens around macros
Dag Wieers [Wed, 15 Oct 2008 00:34:57 +0000 (02:34 +0200)]
Older binutils wants parens around macros

Older versions of gcc/binutils apparently really want parentheses
around macro arguments.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: document naming policy change
H. Peter Anvin [Wed, 15 Oct 2008 00:56:15 +0000 (17:56 -0700)]
NEWS: document naming policy change

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoSYSLINUX -> Syslinux
H. Peter Anvin [Wed, 15 Oct 2008 00:53:44 +0000 (17:53 -0700)]
SYSLINUX -> Syslinux

Adopt the moniker "The Syslinux Project", ordinary proper noun
capitalization, to refer to the project as a whole.  This leaves the
all-caps SYSLINUX to refer to the FAT loader only.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMEMDISK: drop unnecessary newline
H. Peter Anvin [Tue, 14 Oct 2008 21:51:37 +0000 (14:51 -0700)]
MEMDISK: drop unnecessary newline

Drop a newline we didn't need after all.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMEMDISK: default to "safeint" mode syslinux-3.73-pre3
H. Peter Anvin [Tue, 14 Oct 2008 21:38:04 +0000 (14:38 -0700)]
MEMDISK: default to "safeint" mode

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>
16 years agomeminfo: update to deal with ACPI 3 and other braindamage
H. Peter Anvin [Mon, 13 Oct 2008 21:21:29 +0000 (14:21 -0700)]
meminfo: update to deal with ACPI 3 and other braindamage

Add support for ACPI 3 and certain broken e820 implementations in the
meminfo program.  Some e820 implementations expect the buffer to
remain the same between different invocations, despite the fact that
there is absolutely no guarantee to that effect in the spec.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: Document new E820 code. syslinux-3.73-pre2
H. Peter Anvin [Mon, 13 Oct 2008 19:40:29 +0000 (12:40 -0700)]
NEWS: Document new E820 code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoe820: pre-initialize buffer
H. Peter Anvin [Mon, 13 Oct 2008 19:35:42 +0000 (12:35 -0700)]
e820: pre-initialize buffer

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>
16 years agocom32/lib: fix reversed test when looking for extattr in e820
H. Peter Anvin [Mon, 13 Oct 2008 19:33:47 +0000 (12:33 -0700)]
com32/lib: fix reversed test when looking for extattr in e820

Fix reversed test when looking for extattr in e820: force the extattr
values only when they are *not* present...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomemdisk: updated Makefile rule for e820test
H. Peter Anvin [Fri, 10 Oct 2008 19:50:20 +0000 (12:50 -0700)]
memdisk: updated Makefile rule for e820test

Makefile rule for e820test that actually works.  It's suboptimal, and
that is just fine.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomemdisk: make the e820 code compile for debugging again
H. Peter Anvin [Fri, 10 Oct 2008 19:48:18 +0000 (12:48 -0700)]
memdisk: make the e820 code compile for debugging again

Make it possible to build e820test again, to debug the e820 code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomemdisk: make sure to ignore non-active ranges
H. Peter Anvin [Fri, 10 Oct 2008 19:47:14 +0000 (12:47 -0700)]
memdisk: make sure to ignore non-active ranges

Skip non-active ranges when looking for a suitable chunk of memory for
decompression.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomemdisk: fix up new e820 code
H. Peter Anvin [Fri, 10 Oct 2008 19:21:25 +0000 (12:21 -0700)]
memdisk: fix up new e820 code

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>
16 years agoSupport "extended attributes" for INT 15h, AX=E820h
H. Peter Anvin [Fri, 10 Oct 2008 19:10:24 +0000 (12:10 -0700)]
Support "extended attributes" for INT 15h, AX=E820h

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>
16 years agoMove vesainfo.c32 from "samples" to "modules"
H. Peter Anvin [Mon, 13 Oct 2008 19:25:22 +0000 (12:25 -0700)]
Move vesainfo.c32 from "samples" to "modules"

vesainfo.c32 is turning into an invaluable debugging tool.  Put it in
"modules" instead of "samples", to encourage distros to package it.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoAdd CD-ROM mode query to the COM32 interface
H. Peter Anvin [Fri, 10 Oct 2008 22:01:19 +0000 (15:01 -0700)]
Add CD-ROM mode query to the COM32 interface

Report the booting mode of ISOLINUX through the COM32 interface.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMakefile.private: stop making uuencoded files
H. Peter Anvin [Thu, 9 Oct 2008 19:09:25 +0000 (12:09 -0700)]
Makefile.private: stop making uuencoded files

Email attachements replaced uuencoded files long ago, and these days I
rarely mail people test builds anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNow working on version 3.73; update NEWS syslinux-3.73-pre1
H. Peter Anvin [Thu, 9 Oct 2008 19:07:33 +0000 (12:07 -0700)]
Now working on version 3.73; update NEWS

Bump the version number and update NEWS.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agogPXE: build with NO_WERROR=1
H. Peter Anvin [Thu, 9 Oct 2008 19:03:25 +0000 (12:03 -0700)]
gPXE: build with NO_WERROR=1

-Werror is great for development, but is really bad for production
where one may encounter a number of different toolchains.  This causes
diagnostic warnings to get promoted to build failures.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agogPXE: merge gPXE 0.9.5
H. Peter Anvin [Wed, 1 Oct 2008 18:47:20 +0000 (11:47 -0700)]
gPXE: merge gPXE 0.9.5

Merge gPXE 0.9.5

gpxe 8c3e95ce420c21e612dbed58fd74dbb01025643f
gpxe-for-syslinux 1982e507d0159d83a542224d4203e964bbd16f7d

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoUpdate gPXE to version 0.9.4
H. Peter Anvin [Fri, 26 Sep 2008 23:45:29 +0000 (16:45 -0700)]
Update gPXE to version 0.9.4

Update gPXE to release version 0.9.4.

gpxe-for-syslinux 6ef0d500df9e7c827352aca76a5e1966a5f29bfa
gpxe upstream 601d244a8e6dc742780060a9e0c48b91fa6c4524
(gpxe-0.9.4-release)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoRemove line-leading gas-style comments in files compiled with -std=gnu99
H. Peter Anvin [Fri, 26 Sep 2008 22:07:05 +0000 (15:07 -0700)]
Remove line-leading gas-style comments in files compiled with -std=gnu99

Some versions of gcc barf if we have hash-style comments in files when
-std=gnu99 is used.  Remove from assembly files that are subject to
being assembled that way.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agosetjmp.S: use C-style comments
H. Peter Anvin [Fri, 26 Sep 2008 20:13:52 +0000 (13:13 -0700)]
setjmp.S: use C-style comments

Earlier versions of cpp would get confused by the gas-style comments
at line starts; replace them with C-style comments.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoFix "make clean" confusion syslinux-3.72
H. Peter Anvin [Thu, 25 Sep 2008 23:46:02 +0000 (16:46 -0700)]
Fix "make clean" confusion

"make clean" must NOT remove stuff that "make installer" should not
rebuild.  This is a somewhat unfortunate choice of naming, but that's
the way it is.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agocom32/lib: fix "make clean" by proper parens for "find"
H. Peter Anvin [Thu, 25 Sep 2008 23:34:42 +0000 (16:34 -0700)]
com32/lib: fix "make clean" by proper parens for "find"

"-o" clauses bind looser than -print0, so we need parens.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agogPXE: remove the gPXE contrib directory
H. Peter Anvin [Thu, 25 Sep 2008 23:25:20 +0000 (16:25 -0700)]
gPXE: remove the gPXE contrib directory

Remove the gPXE contrib directory.  We don't use it, and it causes
trouble with rpmbuild due to .spec files.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoUpdate gPXE syslinux-3.72-pre8
H. Peter Anvin [Thu, 25 Sep 2008 20:46:43 +0000 (13:46 -0700)]
Update gPXE

Update gPXE to:

gpxe-for-syslinux 0a1f463e8b3218803b42cd3940e90a7678de0b3e
gpxe upstream 3392cfa7df58a5662417f25226cf75dedabeb750

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: document "menu default" fix. syslinux-3.72-pre7
H. Peter Anvin [Mon, 22 Sep 2008 18:09:46 +0000 (11:09 -0700)]
NEWS: document "menu default" fix.

16 years agosimple menu: make "menu default" work after "menu begin"
H. Peter Anvin [Mon, 22 Sep 2008 18:07:22 +0000 (11:07 -0700)]
simple menu: make "menu default" work after "menu begin"

Make "menu default" work after "menu begin", similar to after
"label".  This is consistent with how "menu label" works.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: trivial fixes
Sebastian Herbszt [Fri, 29 Aug 2008 21:57:52 +0000 (23:57 +0200)]
NEWS: trivial fixes

Fix two typos in NEWS file.

- Sebastian

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoAdd Tab display of labels syslinux-3.72-pre6
H. Peter Anvin [Wed, 10 Sep 2008 04:31:55 +0000 (21:31 -0700)]
Add Tab display of labels

When the Tab key is pressed, display a list of matching labels.  This
can be disabled via the NOCOMPLETE configuration command.  This is a
slightly modified patch by Sebastian Herbszt.

16 years agoNEWS: document ^G -> beep
H. Peter Anvin [Wed, 10 Sep 2008 00:09:16 +0000 (17:09 -0700)]
NEWS: document ^G -> beep

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoansicon, vesacon: beep on ^G
H. Peter Anvin [Wed, 10 Sep 2008 00:08:14 +0000 (17:08 -0700)]
ansicon, vesacon: beep on ^G

If we get a ^G, issue a beep.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agosdi.txt: fix formatting of pxelinux.cfg example
H. Peter Anvin [Tue, 9 Sep 2008 23:39:32 +0000 (16:39 -0700)]
sdi.txt: fix formatting of pxelinux.cfg example

Fix formatting of the pxelinux.cfg example.

16 years agoAdd basic documentation to SDI images boot
Remi Lefevre [Tue, 9 Sep 2008 23:17:57 +0000 (01:17 +0200)]
Add basic documentation to SDI images boot

I adapted it from my patch documentation.
Errors and warnings have been modified, as well as configuration (sdi.c32)
and some minor modifications following discussions.

Signed-off-by: Remi Lefevre <rlefevre@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoparsecmd: show keyword in err_noparm message
Sebastian Herbszt [Tue, 9 Sep 2008 20:48:42 +0000 (22:48 +0200)]
parsecmd: show keyword in err_noparm message

Show which keyword is missing the parameter.

- Sebastian

16 years agomenu: quiet warnings in drain_keyboard() syslinux-3.72-pre5
H. Peter Anvin [Tue, 9 Sep 2008 01:03:45 +0000 (18:03 -0700)]
menu: quiet warnings in drain_keyboard()

Quiet warnings in drain_keyboard().  We need some volatiles in order
to keep gcc from optimizing some of the clearings away, but cast them
away where appropriate.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agosdi.c32: Change SDIReserved -> MDBType
H. Peter Anvin [Tue, 9 Sep 2008 00:57:10 +0000 (17:57 -0700)]
sdi.c32: Change SDIReserved -> MDBType

Per Sergii Kolisnyk, change SDIReserved to MDBType.

16 years agosdi.c32: verify the header checksum
Remi Lefevre [Wed, 3 Sep 2008 15:30:44 +0000 (17:30 +0200)]
sdi.c32: verify the header checksum

Verify the checksum in the SDI header.

SDIheader variable names and checksum algo are from
http://skolk.livejournal.com/