profile/ivi/syslinux.git
15 years agocore: give 64K to the PM stack
H. Peter Anvin [Wed, 8 Jul 2009 00:02:44 +0000 (17:02 -0700)]
core: give 64K to the PM stack

Give a full aligned 64K chunk for the PM stack.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Mon, 6 Jul 2009 00:14:54 +0000 (17:14 -0700)]
Merge branch 'master' into core32

15 years agodosutil/Makefile: more complete structure
H. Peter Anvin [Sun, 5 Jul 2009 21:15:12 +0000 (14:15 -0700)]
dosutil/Makefile: more complete structure

More complete and consistent structure for dosutil/Makefile.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agodosutil/Makefile: more complete structure
H. Peter Anvin [Sun, 5 Jul 2009 21:15:12 +0000 (14:15 -0700)]
dosutil/Makefile: more complete structure

More complete and consistent structure for dosutil/Makefile.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Sun, 5 Jul 2009 08:05:48 +0000 (01:05 -0700)]
Merge branch 'master' into core32

15 years agodosutil: update mdiskchk, add Makefile
H. Peter Anvin [Sun, 5 Jul 2009 08:04:50 +0000 (01:04 -0700)]
dosutil: update mdiskchk, add Makefile

Update mdiskchk and add a Makefile.  Note that since this needs
OpenWatcom to compile, we still check in the binary file (which is
quite small, anyway.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore/rllpack.c: fix some particular bad formatting
H. Peter Anvin [Wed, 1 Jul 2009 21:24:23 +0000 (14:24 -0700)]
core/rllpack.c: fix some particular bad formatting

indent doesn't always do the right thing...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Sat, 27 Jun 2009 00:45:51 +0000 (17:45 -0700)]
Merge branch 'master' into core32

15 years agoCreate a dosutil subdirectory and move mdiskchk there
H. Peter Anvin [Sat, 27 Jun 2009 00:44:22 +0000 (17:44 -0700)]
Create a dosutil subdirectory and move mdiskchk there

DOS utilities aren't really "samples".  Create a dedicated "dosutil"
directory, and move mdiskchk there for now.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agodos: assume NASM 2.03, so use -MP -MD for dependencies
H. Peter Anvin [Wed, 24 Jun 2009 23:39:08 +0000 (16:39 -0700)]
dos: assume NASM 2.03, so use -MP -MD for dependencies

Assume NASM 2.03 or later, so use -MP -MD to generate dependencies.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: assume NASM 2.03 or later, so we can use -MD for deps
H. Peter Anvin [Wed, 24 Jun 2009 23:36:50 +0000 (16:36 -0700)]
core: assume NASM 2.03 or later, so we can use -MD for deps

Let's require NASM 2.03 or later, so we can use the -MD and -MP
options to generate dependencies.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMCONFIG: we need NASM 2 these days, use -Ox
H. Peter Anvin [Wed, 24 Jun 2009 23:26:59 +0000 (16:26 -0700)]
MCONFIG: we need NASM 2 these days, use -Ox

We need NASM 2 anyway for this branch, so we might as well use the -Ox
option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMCONFIG: build GCCOPT one step at a time, don't align stack
H. Peter Anvin [Wed, 24 Jun 2009 22:55:43 +0000 (15:55 -0700)]
MCONFIG: build GCCOPT one step at a time, don't align stack

Some gcc options are only valid together with other gcc options, so
build GCCOPT one bit at a time, and change gcc_ok to take already
existing GCCOPT flags into account.

This lets us build with -mpreferred-stack-boundary=2, which is only
valid on 32 bits and therefore with -m32.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: generate DWARF debugging info from NASM
H. Peter Anvin [Wed, 24 Jun 2009 21:29:00 +0000 (14:29 -0700)]
core: generate DWARF debugging info from NASM

NASM 2.03 or higher can generate DWARF debugging info, which is also
what gcc produces.  Mixing debugging info seems to cause a lot of
problems.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoextlinux: remove duplicate "const char *program;"
Gilles Espinasse [Sat, 20 Jun 2009 00:21:19 +0000 (17:21 -0700)]
extlinux: remove duplicate "const char *program;"

Remove redundant declaration.

15 years agoAdd .gitignore files for generated files
H. Peter Anvin [Mon, 15 Jun 2009 21:39:20 +0000 (14:39 -0700)]
Add .gitignore files for generated files

Create new .gitignore files and add generated files to them.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Sun, 14 Jun 2009 23:21:33 +0000 (16:21 -0700)]
Merge branch 'master' into core32

Resolved Conflicts:
version

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'syslinux-3.8x'
H. Peter Anvin [Sun, 14 Jun 2009 23:21:10 +0000 (16:21 -0700)]
Merge branch 'syslinux-3.8x'

15 years agoNEWS: document chainloading fix
H. Peter Anvin [Sun, 14 Jun 2009 23:03:54 +0000 (16:03 -0700)]
NEWS: document chainloading fix

15 years agoPXELINUX: when chaining an NBP, restore *all* registers
H. Peter Anvin [Sun, 14 Jun 2009 23:01:30 +0000 (16:01 -0700)]
PXELINUX: when chaining an NBP, restore *all* registers

On at least ASUS A8N-E, unless *all* registers are restored to pre-PXE
status, localboot doesn't work.  We were clobbering DS, ESI and EDX
when chainloading an NBP, which meant that localboot wouldn't work in
the chainloaded NBP.  Fix this.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agobootsect: zero memory above a chainloaded boot sector/NBP
H. Peter Anvin [Sun, 14 Jun 2009 21:32:42 +0000 (14:32 -0700)]
bootsect: zero memory above a chainloaded boot sector/NBP

Windows RIS has been reported to make inappropriate use of data found
in uninitialized memory.  To avoid that, clear memory between
a chainloaded boot sector or NBP and Free Base Memory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Wed, 10 Jun 2009 05:54:51 +0000 (22:54 -0700)]
Merge branch 'master' into core32

15 years agocom32.h: cleanups, make OFFS_VALID() take the pointer size into account
H. Peter Anvin [Wed, 10 Jun 2009 05:50:55 +0000 (22:50 -0700)]
com32.h: cleanups, make OFFS_VALID() take the pointer size into account

Clean up some of the constructs in com32.h, and make OFFS_VALID() take
the pointer type into account for the range check -- the whole object
needs to fit within the segment.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: don't use the stack before bootstrap
H. Peter Anvin [Tue, 9 Jun 2009 18:34:00 +0000 (11:34 -0700)]
memdisk: don't use the stack before bootstrap

Under some certain circumstances, it might not be safe to use the
stack as it was set up, so use a jump instead of a call to invoke the
bootstrap.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Tue, 9 Jun 2009 17:49:50 +0000 (10:49 -0700)]
Merge branch 'master' into core32

15 years agoMerge commit 'syslinux-3.82'
H. Peter Anvin [Tue, 9 Jun 2009 17:49:31 +0000 (10:49 -0700)]
Merge commit 'syslinux-3.82'

Conflicts:
com32/menu/menumain.c

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agopxelinux: actually stop parsing on a null option syslinux-3.82
H. Peter Anvin [Tue, 9 Jun 2009 17:19:25 +0000 (10:19 -0700)]
pxelinux: actually stop parsing on a null option

Stop the OACK parsing on a null option, even if it isn't the very
first option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agopxelinux: revert to using TFTP error 8
H. Peter Anvin [Tue, 9 Jun 2009 15:51:45 +0000 (08:51 -0700)]
pxelinux: revert to using TFTP error 8

The main reason for ERROR is OACK parsing failure, so revert to using
error code 8 (but a fixed text error.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agopxelinux: cleaner test for OACK trailing null bytes
H. Peter Anvin [Tue, 9 Jun 2009 14:29:13 +0000 (07:29 -0700)]
pxelinux: cleaner test for OACK trailing null bytes

Instead of looking for a string of null bytes at the end of the OACK
string, simply abort parsing if we run into a null byte where an
option is expected; either we are seeing junk at the end of the
packet, or we are hopelessly confused about how to make sense of the
rest of the packet -- in either case, ignoring is the "liberal"
option.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoPXELINUX: handle OACK packets with extra NULs, cleaner TFTP error syslinux-3.82-pre5
H. Peter Anvin [Tue, 9 Jun 2009 05:19:41 +0000 (22:19 -0700)]
PXELINUX: handle OACK packets with extra NULs, cleaner TFTP error

There are apparently TFTP servers in the field which will send OACK
packets with extra NUL bytes appended at the end.  If we find an OACK
packet where the only thing left at some point during processing is
NULs, then just consider the packet processed.

We have reported all TFTP protocol errors as "tsize required", which
is definitely not true anymore.  Change error code to 0 (undefined)
and the error string to "TFTP error".  When this code gets converted
to C we'll do better.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: additional cleanups
H. Peter Anvin [Mon, 8 Jun 2009 03:59:52 +0000 (20:59 -0700)]
memdisk: additional cleanups

Additional stylistic cleanups.  Rename "syscall" to "intcall" (we
can't call it __intcall without clashing with com32.h); use macros
instead of copying variables to different places with only the type
being different.

Also, only change the rm/pm jump instructions when actually relocating
the code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: add missing memmove.S
H. Peter Anvin [Mon, 8 Jun 2009 01:47:35 +0000 (18:47 -0700)]
memdisk: add missing memmove.S

We need memmove.S in the memdisk directory...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: minor cleanups
H. Peter Anvin [Mon, 8 Jun 2009 01:46:59 +0000 (18:46 -0700)]
memdisk: minor cleanups

Minor cleanups to the source base; make die() also print an error
message and move die() into conio.c.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: relocate real-mode code before booting
H. Peter Anvin [Mon, 8 Jun 2009 01:25:09 +0000 (18:25 -0700)]
memdisk: relocate real-mode code before booting

Relocate the real-mode code before booting.  This allows the target
bootstrap to be loaded at an arbitrary address, not necessarily
0x7c00, and to be almost arbitrarily long.

Add some initial infrastructure for other bootstrap addresses, too.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: move rm_args initialization to C code; export rm_size
H. Peter Anvin [Mon, 8 Jun 2009 00:13:58 +0000 (17:13 -0700)]
memdisk: move rm_args initialization to C code; export rm_size

Move the rm_args initialization (and the associated sti) to C code.
Export the total size of the real-mode code to the protected-mode
code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: set up a limited-size real-mode stack
H. Peter Anvin [Mon, 8 Jun 2009 00:06:59 +0000 (17:06 -0700)]
memdisk: set up a limited-size real-mode stack

Limit the size of the real-mode stack.  This should limit the amount
of memory needed for a relocated real-mode code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: remove hard-coded assumptions for a specific RM segment
H. Peter Anvin [Mon, 8 Jun 2009 00:04:03 +0000 (17:04 -0700)]
memdisk: remove hard-coded assumptions for a specific RM segment

Remove some hard-coded assumptions about having an RM segment at a
specific location.  This should allow us to relocate the RM code once
the PM code knows where DOS free memory ends.  This in turn allows the
PM code to load the boot sector almost anywhere it wants to go in low
memory, as is required for 100% compliant El Torito support.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: remove the requirement that CS_BASE < 64K
H. Peter Anvin [Sun, 7 Jun 2009 22:16:24 +0000 (15:16 -0700)]
memdisk: remove the requirement that CS_BASE < 64K

Remove the requirement that CS_BASE is below 64K, based on its use in
the A20 test code.  This means it can now be located anywhere in high
memory, but it is still a constant.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: move the heap to high memory
H. Peter Anvin [Sun, 7 Jun 2009 22:12:39 +0000 (15:12 -0700)]
memdisk: move the heap to high memory

Instead of using a heap arbitrarily allocated in low memory, move it
to a chunk of bss in high memory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: don't hard-code 0:7C00 as the entry point
H. Peter Anvin [Sun, 7 Jun 2009 21:44:30 +0000 (14:44 -0700)]
memdisk: don't hard-code 0:7C00 as the entry point

Make it possible for the setup code to override SS:SP and CS:IP.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agomemdisk: pass in the address of the real-mode code
H. Peter Anvin [Sun, 7 Jun 2009 21:36:07 +0000 (14:36 -0700)]
memdisk: pass in the address of the real-mode code

Pass in the address of the real-mode code instead of hard-coding it in
two separate places.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: prevent buggy INT 13h from leaving IF=0 syslinux-3.82-pre4
H. Peter Anvin [Fri, 5 Jun 2009 00:24:58 +0000 (17:24 -0700)]
core: prevent buggy INT 13h from leaving IF=0

If it can happen for CD-ROM BIOSes, it can probably happen elsewhere,
too; make sure we don't leave interrupts disabled after broken INT 13h
calls.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agosimple menu: make ONTIMEOUT work with MENU HIDDEN
Sergey Vlasov [Thu, 4 Jun 2009 15:14:48 +0000 (19:14 +0400)]
simple menu: make ONTIMEOUT work with MENU HIDDEN

The command invoked when no keys were pressed for the specified time
(ONTIMEOUT) may be different from the menu item initially selected
when the menu is displayed (DEFAULT or MENU DEFAULT).  Unfortunately,
this did not work together with MENU HIDDEN (which is exactly the case
when having a separate ONTIMEOUT command makes the most sense).

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore/hello.c: better demo on how to do putchar()
H. Peter Anvin [Wed, 3 Jun 2009 02:56:27 +0000 (19:56 -0700)]
core/hello.c: better demo on how to do putchar()

Better illustrate how putchar() should be implemented...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: move xfer_buf_seg to segment 3, and add a collision assert
H. Peter Anvin [Wed, 3 Jun 2009 00:09:41 +0000 (17:09 -0700)]
core: move xfer_buf_seg to segment 3, and add a collision assert

Move the xfer_buf_seg to segment 3 (0x30000) for now; this is more
generous than I hope we will use but makes development easier.

Add an assert to the linker script that the .auxseg/.lowmem segments
don't collide with xfer_buf_seg.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: handle section aliases in ld script; increase STACK32_LEN
H. Peter Anvin [Tue, 2 Jun 2009 23:56:57 +0000 (16:56 -0700)]
core: handle section aliases in ld script; increase STACK32_LEN

Handle aliases that gcc generates in the ld script.  Increase
STACK32_LEN to something a little more reasonable.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: add new __lowmem macro to allocate a static lowmem buffer
H. Peter Anvin [Tue, 2 Jun 2009 23:44:41 +0000 (16:44 -0700)]
core: add new __lowmem macro to allocate a static lowmem buffer

Add a new __lowmem macro that can be applied to an uninitialized
static (or global) object, which allocates it in a new .lowmem section
allocated below the 1 MB boundary.  Keep in mind that low memory is
precious!

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoExport the cache_seg to 32-bit code as core_cache_buf
H. Peter Anvin [Tue, 2 Jun 2009 14:36:43 +0000 (07:36 -0700)]
Export the cache_seg to 32-bit code as core_cache_buf

Export the cache_seg to 32-bit code as core_cache_buf, so we can port
the cache to 32-bit code without porting its 16-bit clients immediately.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: call16(): simple wrapper to call 16-bit functions in the core
H. Peter Anvin [Tue, 2 Jun 2009 05:19:12 +0000 (22:19 -0700)]
core: call16(): simple wrapper to call 16-bit functions in the core

Simple wrapper to call 16-bit functions in the core (CS == 0, and
having a symbol, which is easiest modelled with a function prototype.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoprepcore: make error() generate newline
H. Peter Anvin [Mon, 1 Jun 2009 22:08:34 +0000 (15:08 -0700)]
prepcore: make error() generate newline

Make error() automatically generate newline, to make the code a bit
cleaner looking.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoprepcore: style cleanups
H. Peter Anvin [Mon, 1 Jun 2009 22:04:55 +0000 (15:04 -0700)]
prepcore: style cleanups

Style cleanups in lzo/prepcore.c.  Add an error() function and an
error-checking zeroing memory allocator (xzalloc).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoprepcore: error out if the compressed image is too large to load
H. Peter Anvin [Mon, 1 Jun 2009 21:47:45 +0000 (14:47 -0700)]
prepcore: error out if the compressed image is too large to load

Export, from each loader stage, the symbol MaxLMA which indicates to
prepcore how big the image is allowed to be.  Change prepcore to
enforce this limit and to error out otherwise.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore/hello.c: use __intcall() as a demo
H. Peter Anvin [Mon, 1 Jun 2009 05:25:50 +0000 (22:25 -0700)]
core/hello.c: use __intcall() as a demo

Use __intcall() to indicate that we now can use the same functions as
used in libcom32.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: create an ersatz __com32 structure as expected by libcom32
H. Peter Anvin [Mon, 1 Jun 2009 05:24:42 +0000 (22:24 -0700)]
core: create an ersatz __com32 structure as expected by libcom32

To make it easier to mix libcom32 code into the core, create a __com32
structure to make the system call functions work correctly.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agosyslinux.ld: add a .got to the linker script
H. Peter Anvin [Mon, 1 Jun 2009 05:23:54 +0000 (22:23 -0700)]
syslinux.ld: add a .got to the linker script

Add a .got section to the linker script, to cope with PIE code
imported from libcom32.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoprepcore: actually do a full binary comparison on the output end
H. Peter Anvin [Mon, 1 Jun 2009 05:23:11 +0000 (22:23 -0700)]
prepcore: actually do a full binary comparison on the output end

Do a full binary comparison between the decompressed output and what
we started with.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Mon, 1 Jun 2009 04:55:09 +0000 (21:55 -0700)]
Merge branch 'master' into core32

Conflicts:
core/isolinux.asm

15 years agoMerge branch 'syslinux-3.8x'
H. Peter Anvin [Mon, 1 Jun 2009 04:53:53 +0000 (21:53 -0700)]
Merge branch 'syslinux-3.8x'

Conflicts:
NEWS

15 years agobin2hex: actually account for the number of bytes written syslinux-3.82-pre3
H. Peter Anvin [Fri, 29 May 2009 22:47:20 +0000 (15:47 -0700)]
bin2hex: actually account for the number of bytes written

Unlike C, in Perl printf() doesn't return the number of bytes written.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoisohdpfx: actually generate the stack frame isolinux expects syslinux-3.82-pre2
H. Peter Anvin [Mon, 1 Jun 2009 04:29:59 +0000 (21:29 -0700)]
isohdpfx: actually generate the stack frame isolinux expects

Actually generate the stack frame isolinux expects.  This is not the
optimal order, but it appears to be what both earlier and later
versions of isolinux expects...

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoisolinux: can't clobber edx when dx contains the drive number...
H. Peter Anvin [Mon, 1 Jun 2009 04:29:12 +0000 (21:29 -0700)]
isolinux: can't clobber edx when dx contains the drive number...

Use ebx to hold the upper half of the partition offset, not edx.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoNEWS: add changes since 3.81 syslinux-3.82-pre1
H. Peter Anvin [Mon, 1 Jun 2009 03:25:43 +0000 (20:25 -0700)]
NEWS: add changes since 3.81

15 years agocore: when calling abort_check, we're not idle
H. Peter Anvin [Mon, 1 Jun 2009 03:23:58 +0000 (20:23 -0700)]
core: when calling abort_check, we're not idle

When we call abort_check, we're not idle even though we are polling
the keyboard.  Handle that by calling reset_idle near the top.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoisolinux: bsHidden can't be in data; it is set before checksumming
H. Peter Anvin [Mon, 1 Jun 2009 03:19:33 +0000 (20:19 -0700)]
isolinux: bsHidden can't be in data; it is set before checksumming

We cannot put bsHidden in initializated data, as it is set before we
run the global checksumming.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoversion: next version will be 3.82
H. Peter Anvin [Mon, 1 Jun 2009 03:19:17 +0000 (20:19 -0700)]
version: next version will be 3.82

15 years agoisolinux: handle systems which disables interrupts in El Torito
H. Peter Anvin [Mon, 1 Jun 2009 03:13:08 +0000 (20:13 -0700)]
isolinux: handle systems which disables interrupts in El Torito

At least one system has been identified which disables interrupts when
El Torito INT 13h is executed.  Thus, save/restore IF around INT 13h.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agocore: export a symbol for the raw address of xfer_buf_seg
H. Peter Anvin [Sun, 31 May 2009 18:12:48 +0000 (11:12 -0700)]
core: export a symbol for the raw address of xfer_buf_seg

Export a symbol (core_xfer_buf) for the linear address of the
xfer_bug_seg, for easier use in 32-bit code.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Fri, 29 May 2009 22:52:02 +0000 (15:52 -0700)]
Merge branch 'master' into core32

Conflicts:
version

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agobin2hex: actually account for the number of bytes written
H. Peter Anvin [Fri, 29 May 2009 22:47:20 +0000 (15:47 -0700)]
bin2hex: actually account for the number of bytes written

Unlike C, in Perl printf() doesn't return the number of bytes written.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoAssume the next version will be 3.82
H. Peter Anvin [Fri, 29 May 2009 22:41:43 +0000 (15:41 -0700)]
Assume the next version will be 3.82

15 years agoMerge branch 'master' into core32
H. Peter Anvin [Fri, 29 May 2009 22:26:38 +0000 (15:26 -0700)]
Merge branch 'master' into core32

15 years agoAdd back spaces around ellipses in case statements
H. Peter Anvin [Fri, 29 May 2009 22:25:40 +0000 (15:25 -0700)]
Add back spaces around ellipses in case statements

GNU C allows the ellipsis (...) to be used in case statements to
indicate a range.  However, it requires spaces around it to be valid.
Nindent stripped those off, put them back.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Fri, 29 May 2009 22:23:09 +0000 (15:23 -0700)]
Merge branch 'master' into core32

15 years agoRevert "Run Nindent on mbr/adjust.h"
H. Peter Anvin [Fri, 29 May 2009 22:22:39 +0000 (15:22 -0700)]
Revert "Run Nindent on mbr/adjust.h"

This reverts commit f3ae12c8f7a2af6656c613549555f2b08b2d9708.

adjust.h is an assembly file, not C.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on lzo/prepcore.c
H. Peter Anvin [Fri, 29 May 2009 22:20:14 +0000 (15:20 -0700)]
Run Nindent on lzo/prepcore.c

Automatically reformat lzo/prepcore.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on core/rllpack.c
H. Peter Anvin [Fri, 29 May 2009 22:20:14 +0000 (15:20 -0700)]
Run Nindent on core/rllpack.c

Automatically reformat core/rllpack.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on core/hello.c
H. Peter Anvin [Fri, 29 May 2009 22:20:14 +0000 (15:20 -0700)]
Run Nindent on core/hello.c

Automatically reformat core/hello.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoMerge branch 'master' into core32
H. Peter Anvin [Fri, 29 May 2009 22:16:22 +0000 (15:16 -0700)]
Merge branch 'master' into core32

Conflicts:
com32/include/netinet/in.h
com32/include/sys/cpu.h
dos/argv.c
dos/malloc.c
dos/syslinux.c
extlinux/main.c
libinstaller/setadv.c
libinstaller/syslinux.h
libinstaller/syslxint.h
libinstaller/syslxmod.c
linux/syslinux.c
mtools/syslinux.c
win32/syslinux.c

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on win32/syslinux.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on win32/syslinux.c

Automatically reformat win32/syslinux.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on win32/hello.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on win32/hello.c

Automatically reformat win32/hello.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on utils/gethostip.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on utils/gethostip.c

Automatically reformat utils/gethostip.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/skipatou.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on sample/skipatou.c

Automatically reformat sample/skipatou.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/printf.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on sample/printf.c

Automatically reformat sample/printf.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/mdiskchk.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on sample/mdiskchk.c

Automatically reformat sample/mdiskchk.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/hello2.c
H. Peter Anvin [Fri, 29 May 2009 22:10:37 +0000 (15:10 -0700)]
Run Nindent on sample/hello2.c

Automatically reformat sample/hello2.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/hello.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/hello.c

Automatically reformat sample/hello.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/filetest.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/filetest.c

Automatically reformat sample/filetest.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/fd.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/fd.c

Automatically reformat sample/fd.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/conio.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/conio.c

Automatically reformat sample/conio.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/c32echo.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/c32echo.c

Automatically reformat sample/c32echo.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on sample/atou.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on sample/atou.c

Automatically reformat sample/atou.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on mtools/syslinux.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on mtools/syslinux.c

Automatically reformat mtools/syslinux.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/ymsend.h
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/ymsend.h

Automatically reformat memdump/ymsend.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/ymsend.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/ymsend.c

Automatically reformat memdump/ymsend.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/strtoul.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/strtoul.c

Automatically reformat memdump/strtoul.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/string.h
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/string.h

Automatically reformat memdump/string.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/stdlib.h
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/stdlib.h

Automatically reformat memdump/stdlib.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/stdio.h
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/stdio.h

Automatically reformat memdump/stdio.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/stdint.h
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/stdint.h

Automatically reformat memdump/stdint.h using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
15 years agoRun Nindent on memdump/skipatou.c
H. Peter Anvin [Fri, 29 May 2009 22:10:36 +0000 (15:10 -0700)]
Run Nindent on memdump/skipatou.c

Automatically reformat memdump/skipatou.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

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