profile/ivi/syslinux.git
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/

16 years agombr, gptmbr, isohdpfx: don't lose the carry flag
H. Peter Anvin [Tue, 9 Sep 2008 00:30:55 +0000 (17:30 -0700)]
mbr, gptmbr, isohdpfx: don't lose the carry flag

Using addw to restore the stack pointer clobbers CF.  Use leaw
instead, even though this relies on the BIOS not clobbering %si.
Worst case we can add a mov %sp, %si or similar.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisolinux: save a few bytes
H. Peter Anvin [Tue, 9 Sep 2008 00:23:58 +0000 (17:23 -0700)]
isolinux: save a few bytes

Save a few bytes in ISOLINUX.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisohdpfx: save one byte
H. Peter Anvin [Tue, 9 Sep 2008 00:18:35 +0000 (17:18 -0700)]
isohdpfx: save one byte

Save one byte in isohdpfx.S.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMakefile: add isohybrid as an IOBJECT
H. Peter Anvin [Tue, 9 Sep 2008 00:16:03 +0000 (17:16 -0700)]
Makefile: add isohybrid as an IOBJECT

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisolinux: save a few bytes to make sure we actually fit
H. Peter Anvin [Mon, 8 Sep 2008 23:15:27 +0000 (16:15 -0700)]
isolinux: save a few bytes to make sure we actually fit

With a long VERSION_STR, we would sometimes fail to compile.  Shorten
a few of the messages to make sure that doesn't happen.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: document gdb stub
H. Peter Anvin [Mon, 8 Sep 2008 23:07:04 +0000 (16:07 -0700)]
NEWS: document gdb stub

16 years agoMerge commit 'stefanha/gdbstub'
H. Peter Anvin [Mon, 8 Sep 2008 23:05:50 +0000 (16:05 -0700)]
Merge commit 'stefanha/gdbstub'

16 years agombr/Makefile: run checksize on the proper binaries... syslinux-3.72-pre4
H. Peter Anvin [Mon, 8 Sep 2008 05:57:49 +0000 (22:57 -0700)]
mbr/Makefile: run checksize on the proper binaries...

There is a reason other than stylistic for using macros like $@ in
explicit rules, and that is that they get copied and pasted around...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agogPXE: enable NFS, FTP, HTTPS
H. Peter Anvin [Mon, 8 Sep 2008 05:56:45 +0000 (22:56 -0700)]
gPXE: enable NFS, FTP, HTTPS

Enable the NFS, FTP, and HTTPS protocols in the gpxelinux.0
configuration.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agogPXE: update gPXE to current git
H. Peter Anvin [Mon, 8 Sep 2008 05:41:29 +0000 (22:41 -0700)]
gPXE: update gPXE to current git

Update gPXE to current git.

gpxe-for-syslinux e3ef2094cfa26f874c5f8dbd687eb311830efcf0
gpxe main tree 8223084afc206000312611a3fcfa30a28500d1a3

16 years agoisohybrid: remove Perl modules we don't actually need
H. Peter Anvin [Mon, 8 Sep 2008 02:27:16 +0000 (19:27 -0700)]
isohybrid: remove Perl modules we don't actually need

Remove Perl "use" statements that aren't actually required.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisohybrid: verify we have a hybrid-compatible isolinux.bin
H. Peter Anvin [Mon, 8 Sep 2008 02:23:31 +0000 (19:23 -0700)]
isohybrid: verify we have a hybrid-compatible isolinux.bin

Verify that the PXE boot loader is a hybrid-compatible isolinux.bin by
looking for the hybrid boot signature, otherwise print an error
message.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisohybrid, mkdiskimage: don't use sysopen(), sysread()
H. Peter Anvin [Mon, 8 Sep 2008 02:17:03 +0000 (19:17 -0700)]
isohybrid, mkdiskimage: don't use sysopen(), sysread()

Don't use sysopen() and sysread() when it doesn't make sense.
Especially avoid using sysread() -- sysopen() can be used with read();
the C fdopen() is implicit.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisolinux: display BIOS type
H. Peter Anvin [Sat, 6 Sep 2008 01:02:17 +0000 (18:02 -0700)]
isolinux: display BIOS type

Display the BIOS type for isolinux in the same way we do for
ldlinux/extlinux.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoisohybrid: fix partition table generation, document syslinux-3.72-pre3
H. Peter Anvin [Fri, 5 Sep 2008 22:21:40 +0000 (15:21 -0700)]
isohybrid: fix partition table generation, document

Fix the generation of the partition table in isohybrid; also document
the operation of the partition table.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoISOLINUX: document hybrid mode syslinux-3.72-pre2
H. Peter Anvin [Fri, 5 Sep 2008 22:07:35 +0000 (15:07 -0700)]
ISOLINUX: document hybrid mode

Document ISOLINUX hybrid mode.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoISOLINUX: fix EBIOS information passing in hybrid HDD mode
H. Peter Anvin [Fri, 5 Sep 2008 22:00:40 +0000 (15:00 -0700)]
ISOLINUX: fix EBIOS information passing in hybrid HDD mode

We were incorrectly not passing the EBIOS flag in hybrid HDD mode;
also compute the EBIOS LBA correctly in hybrid HDD mode.  Allow a
34-bit LBA for this, that way we still support up to 2^32 CD-ROM
sectors (8 TB).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoISOLINUX: support for hybrid mode (CD-ROM/USB key)
H. Peter Anvin [Fri, 5 Sep 2008 21:49:42 +0000 (14:49 -0700)]
ISOLINUX: support for hybrid mode (CD-ROM/USB key)

Still a work in progress.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agocore/Makefile: iso%.bin depends on checksumiso.pl
H. Peter Anvin [Fri, 5 Sep 2008 21:48:01 +0000 (14:48 -0700)]
core/Makefile: iso%.bin depends on checksumiso.pl

iso%.bin depends on checksumiso.pl

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agochecksumiso: pad isolinux.bin to a sector boundary
H. Peter Anvin [Fri, 5 Sep 2008 21:47:22 +0000 (14:47 -0700)]
checksumiso: pad isolinux.bin to a sector boundary

Always pad isolinux.bin to a full CD-ROM sector boundary.  This avoids
a lot of potential special cases.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agokeytab-lilo: don't try to be too smart
H. Peter Anvin [Thu, 4 Sep 2008 12:40:38 +0000 (05:40 -0700)]
keytab-lilo: don't try to be too smart

The keytab-lilo script tried to add pathname and extension, but
loadkeys does that better.  Therefore, don't try to be smart.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoNEWS: update NEWS (sdi.c32, ISOLINUX fix) syslinux-3.72-pre1
H. Peter Anvin [Tue, 2 Sep 2008 23:18:28 +0000 (16:18 -0700)]
NEWS: update NEWS (sdi.c32, ISOLINUX fix)

16 years agoisolinux: return failure when opening a zero-length file
H. Peter Anvin [Tue, 2 Sep 2008 23:14:28 +0000 (16:14 -0700)]
isolinux: return failure when opening a zero-length file

In the Syslinux view of the world, a zero-length file doesn't exist
and therefore should return error on open.  A lot of the code relies
on this, but ISOLINUX allowed a zero-length file to be opened, which
could cause all kinds of trouble.

It would be nicer to not have that restriction, but removing it will
probably not happen until the configuration code is rewritten in C.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agosdi.c32: credit where credit is due
H. Peter Anvin [Tue, 2 Sep 2008 21:44:22 +0000 (14:44 -0700)]
sdi.c32: credit where credit is due

This doesn't use Remi's code, but definitely used some concepts from
his patch.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agosdi.c32: support gzipped SDI images
H. Peter Anvin [Tue, 2 Sep 2008 21:42:23 +0000 (14:42 -0700)]
sdi.c32: support gzipped SDI images

Support gzipped SDI images, simply by replacing loadfile() with
zloadfile().  Suggested by Remi Lefevre.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoFix GDB protocol flow control issues
Stefan Hajnoczi [Sat, 30 Aug 2008 08:07:42 +0000 (09:07 +0100)]
Fix GDB protocol flow control issues

16 years agoMakefile: add modules to BSUBDIRS
Sebastian Herbszt [Fri, 29 Aug 2008 19:56:30 +0000 (21:56 +0200)]
Makefile: add modules to BSUBDIRS

Add modules directory to BSUBDIRS.

16 years agoAdd GDB stub
Stefan Hajnoczi [Fri, 29 Aug 2008 14:08:26 +0000 (15:08 +0100)]
Add GDB stub

16 years agoRelocating COM32 module
Stefan Hajnoczi [Thu, 28 Aug 2008 20:19:31 +0000 (21:19 +0100)]
Relocating COM32 module

16 years agoNEWS: update for 3.72
H. Peter Anvin [Wed, 27 Aug 2008 23:25:41 +0000 (16:25 -0700)]
NEWS: update for 3.72

16 years agoAdd pxechain.com; new modules direction; reorganize installation
H. Peter Anvin [Wed, 27 Aug 2008 23:23:24 +0000 (16:23 -0700)]
Add pxechain.com; new modules direction; reorganize installation

Add the pxechain module from Jeffery Hutzelman at CMU.
Create new modules directory for non-com32 modules.
Centralize installation, since we have three types of install, and
only one of them was distributed.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agomenu: avoid leaving obvious password turds in memory
H. Peter Anvin [Tue, 26 Aug 2008 21:46:36 +0000 (14:46 -0700)]
menu: avoid leaving obvious password turds in memory

Avoid leaving obvious password turds in memory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agocore/Makefile: The core is an embedded target
H. Peter Anvin [Fri, 22 Aug 2008 21:43:43 +0000 (14:43 -0700)]
core/Makefile: The core is an embedded target

The core is an embedded target, so use MCONFIG.embedded.

16 years agoClean up embedded Makefile targets; fix build failure
H. Peter Anvin [Fri, 22 Aug 2008 21:42:40 +0000 (14:42 -0700)]
Clean up embedded Makefile targets; fix build failure

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.

16 years agoMajor Makefile cleanups; gcc 4.3.0 compatiblity
H. Peter Anvin [Wed, 20 Aug 2008 22:15:34 +0000 (15:15 -0700)]
Major Makefile cleanups; gcc 4.3.0 compatiblity

Cleanup and centralize the Makefile system even more.
Fix a gcc 4.3 incompatibility in memdisk (definition of strlen).

16 years agoMEMDISK: document the pause option
H. Peter Anvin [Fri, 15 Aug 2008 01:19:23 +0000 (18:19 -0700)]
MEMDISK: document the pause option

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agopci: fix pci_scan()
Sebastian Herbszt [Mon, 11 Aug 2008 20:00:29 +0000 (22:00 +0200)]
pci: fix pci_scan()

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agopci: cosmetic fixes
Sebastian Herbszt [Mon, 11 Aug 2008 19:51:21 +0000 (21:51 +0200)]
pci: cosmetic fixes

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agopci: revamp the PCI system to have a hierarchial format
H. Peter Anvin [Tue, 12 Aug 2008 18:30:19 +0000 (11:30 -0700)]
pci: revamp the PCI system to have a hierarchial format

Create the concept of a PCI domain, as a hierarcy of busses, devices
and functions.  This avoids large static-sized arrays and allows for
geographical addressing of devices.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoctype.h: change extern inline to static inline
H. Peter Anvin [Tue, 12 Aug 2008 18:28:59 +0000 (11:28 -0700)]
ctype.h: change extern inline to static inline

Make -std=gnu99 happy...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agostdio.h: change fflush() from "extern inline" to "static inline"
H. Peter Anvin [Tue, 12 Aug 2008 18:20:34 +0000 (11:20 -0700)]
stdio.h: change fflush() from "extern inline" to "static inline"

When compiling with -std=gnu99, apparently gcc doesn't like "extern
inline" anymore.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agocom32: compile with -std=gnu99
H. Peter Anvin [Tue, 12 Aug 2008 18:18:28 +0000 (11:18 -0700)]
com32: compile with -std=gnu99

Compile with -std=gnu99, this allows us to define initializers inside
for() loops, which makes certain kinds of ugly macros easier to write.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agostdio.h: revamp fread/fwrite to make gcc less unhappy
H. Peter Anvin [Tue, 12 Aug 2008 18:17:06 +0000 (11:17 -0700)]
stdio.h: revamp fread/fwrite to make gcc less unhappy

Implement the special case size == 1 in terms of a macro; this makes
gcc 4.3 less unhappy.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoMerge updated version of the gPXE code
H. Peter Anvin [Tue, 12 Aug 2008 17:34:51 +0000 (10:34 -0700)]
Merge updated version of the gPXE code

Merge gPXE up to upstream git version gpxe-0.9.3-release-197-gff2b6a5
(ff2b6a512d7a4f351e48dc9a042099a1010342a3).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoFix lrand48() and rand()
H. Peter Anvin [Mon, 11 Aug 2008 16:14:40 +0000 (09:14 -0700)]
Fix lrand48() and rand()

lrand48() and rand() had improper parenthesization, which caused it to
return negative values.

Spotted by Stefan Bucur :)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agoAdd version.mk to .gitignore
H. Peter Anvin [Thu, 7 Aug 2008 23:10:30 +0000 (16:10 -0700)]
Add version.mk to .gitignore

16 years agocom32/lib: add zalloc()
H. Peter Anvin [Fri, 1 Aug 2008 21:03:21 +0000 (14:03 -0700)]
com32/lib: add zalloc()

Add the nonstandard, but often useful, zalloc() function.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agopci: inlines for extracting part of a PCI device address
H. Peter Anvin [Fri, 1 Aug 2008 19:56:54 +0000 (12:56 -0700)]
pci: inlines for extracting part of a PCI device address

The inverse operations of pci_mkaddr()

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
16 years agopci: store device address
H. Peter Anvin [Fri, 1 Aug 2008 19:51:28 +0000 (12:51 -0700)]
pci: store device address

When scanning PCI devices, store the device address for reference.
Based on a patch by Sebastian Herbszt.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>