H. Peter Anvin [Wed, 22 Apr 2009 02:15:55 +0000 (19:15 -0700)]
a20: advance A20Test by a large, prime number
Rather than simply incrementing A20Test, advance it by a large prime
number every time. The reason is to minimize false aliasing as
quickly as possible.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 21 Apr 2009 23:16:32 +0000 (16:16 -0700)]
a20: remove DO_WBINVD configurable
We haven't enabled DO_WBINVD for a very long time. A20 is implemented
on the inside of the L1 cache for 486+ (and 386 didn't have WBINVD),
so an I/O delay is the only thing we can rely on anyway.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 21 Apr 2009 23:14:52 +0000 (16:14 -0700)]
a20: inline io_delay
The io_delay operation is only two instructions, might as well inline
it.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 21 Apr 2009 23:12:15 +0000 (16:12 -0700)]
a20: A20Test is now a dword
A20Test is now a dword; this makes it less likely that we'll have a
case of false aliasing resulting in the io_delay path being taken.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 21 Apr 2009 23:08:07 +0000 (16:08 -0700)]
a20: try to avoid io_delay if A20 is already enabled
We have at least the possibility to avoid io_delay if A20 is already
enabled. Thus, give it a try. Furthermore, when calling enable_a20,
always try the zero-work case first, since we may have been enabled by
a previous call. This should improve performance of the rm/pm
ping-pong.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 20 Apr 2009 22:56:30 +0000 (15:56 -0700)]
Global whitespace cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Sun, 19 Apr 2009 22:39:19 +0000 (15:39 -0700)]
core: remove references to MDSLINUX
MDSLINUX (Multiple Disk Syslinux) will never happen, kill references
to it.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sun, 19 Apr 2009 22:35:02 +0000 (15:35 -0700)]
core: merge the startup code for disk-based derivatives
Merge the startup code for disk-based derivatives (currently SYSLINUX,
EXTLINUX) into a single file. There is probably still additional
shared code that should be merged, but this is a good start.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Fri, 17 Apr 2009 17:28:03 +0000 (19:28 +0200)]
hdt: fix format string warnings
Fix format string warnings spit by the compiler.
- Sebastian
Sebastian Herbszt [Fri, 17 Apr 2009 17:23:32 +0000 (19:23 +0200)]
com32: remove unused variables
Silence compiler warnings by removing unused variables.
- Sebastian
H. Peter Anvin [Fri, 17 Apr 2009 00:19:24 +0000 (17:19 -0700)]
bcopyxx: when going to 16-bit PM, might as well do it right
When entering 16-bit PM after shuffle and boot, we might as well
do so sanely. Specifically, set up the data segments so that they
match the code segment, generating a 16-bit "tiny" model environment.
This makes it a lot saner to bootstrap a proper PM environment from
there if that is what the user intends. For the presumably more
common case of RM entry, it won't do any harm, and it's only a handful
of additional instructions.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Thu, 16 Apr 2009 18:04:52 +0000 (11:04 -0700)]
Merge branch 'syslinux-3.7x'
H. Peter Anvin [Thu, 16 Apr 2009 04:42:14 +0000 (21:42 -0700)]
rosh: don't compile rosh.lnx by default
Don't compile rosh.lnx by default. It causes unnecessary dependencies
on the host system.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 15 Apr 2009 23:26:49 +0000 (16:26 -0700)]
NEWS: document HDT PCI fix
Erwan Velu [Tue, 14 Apr 2009 19:55:14 +0000 (21:55 +0200)]
hdt: Fixing latency indentation
Impact: Improving display
Removing useless space
Erwan Velu [Wed, 15 Apr 2009 19:05:19 +0000 (21:05 +0200)]
pci: Using for_each_pci_func3
Impact: cleaning code
Using for_each_pci_func3 instead of for_each_pci_func + pci_mkaddr
H. Peter Anvin [Tue, 14 Apr 2009 20:45:33 +0000 (13:45 -0700)]
pci: add pci_for_each_func3() which produces an address
Add pci_for_each_func3() iterator, which produces an address in
addition to the device pointer.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Erwan Velu [Tue, 14 Apr 2009 19:41:05 +0000 (21:41 +0200)]
PCI: Fixing freeze when detecting many PCI devices
Impact: Prevent hard freeze when having many PCI devices
A user reported that calling gather_additional_pci_config() when many
PCI devices exists on a host could lead to a complete freeze.
This patch remove some useless code and use for_each_pci_func() instead.
This prevent useless memory allocation.
H. Peter Anvin [Wed, 15 Apr 2009 04:55:08 +0000 (21:55 -0700)]
NEWS: add the latest stuff...
Document additional changes since 3.74.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 15 Apr 2009 04:52:50 +0000 (21:52 -0700)]
gpxe: Don't use "lret $2" to return from an interrupt
Using "lret $2" to return from an interrupt causes interrupts to be
disabled in the calling program, since the INT instruction will have
disabled interrupts. Instead, patch CF on the stack and use iret to
return.
Interestingly, the original PC BIOS had this bug in at least one
place.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 15 Apr 2009 04:45:54 +0000 (21:45 -0700)]
menu: modify MENU SAVE to be a cascading default
Change MENU SAVE to be a cascading default that can be reverted with
MENU NOSAVE.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 22:36:05 +0000 (15:36 -0700)]
doc: fix stray parenthesis in syslinux.txt
Remove stay parenthesis in syslinux.txt
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 20:45:33 +0000 (13:45 -0700)]
pci: add pci_for_each_func3() which produces an address
Add pci_for_each_func3() iterator, which produces an address in
addition to the device pointer.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 19:37:42 +0000 (12:37 -0700)]
doc: clarify CS.base restriction for KVM
Clarify that the CS.base restriction is a prescription of
compatibility, and not something that the ABI handles transparently.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 19:36:21 +0000 (12:36 -0700)]
doc: update copyright in syslinux.txt
Update and clarify copyright in syslinux.txt.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 19:14:04 +0000 (12:14 -0700)]
Merge branch 'syslinux-3.7x'
H. Peter Anvin [Tue, 14 Apr 2009 19:08:08 +0000 (12:08 -0700)]
NEWS: the extlinux(1) is from Brian Pellin, not Daniel Baumann.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 19:04:54 +0000 (12:04 -0700)]
NEWS: document MEMDISK fixes, updates.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Daniel Baumann [Tue, 14 Apr 2009 18:30:55 +0000 (20:30 +0200)]
Adding manpage from Brian Pellin <bpellin@gmail.com> for extlinux.
Daniel Baumann [Tue, 14 Apr 2009 18:29:43 +0000 (20:29 +0200)]
Correcting typo in extlinux documentation.
H. Peter Anvin [Tue, 14 Apr 2009 19:02:11 +0000 (12:02 -0700)]
MEMDISK: traceability for the geometry
Print the source of the geometry determination.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 19:01:07 +0000 (12:01 -0700)]
MEMDISK: fix MBR geometry extraction
Fix the MBR geometry extraction; there was an off-by-2 error in the
MBR signature offset.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 18:27:25 +0000 (11:27 -0700)]
Merge branch 'syslinux-3.7x'
Conflicts:
core/bootsect.inc
version
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 18:22:07 +0000 (11:22 -0700)]
NEWS, version: bump version to 3.75, document keeppxe fix
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 18:20:03 +0000 (11:20 -0700)]
pxelinux: fix the handling of KeepPXE
KeepPXE was broken in 3.74, because we tried to use both bits 0 and 1,
but failed to actually test both bits. Instead, just use bit 0, but
move the place where we clear the bits.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Tue, 14 Apr 2009 05:34:55 +0000 (22:34 -0700)]
core/bcopyxx.inc: save a few bytes
Muck with the GDT patching logic to save a few bytes.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 05:13:22 +0000 (22:13 -0700)]
Fix infinite loop in syslinux_memmap_find()
We can't use continue; since we're not using a for loop; we have to
advance to the next list entry...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 03:31:40 +0000 (20:31 -0700)]
Merge branch 'timeout-fix'
H. Peter Anvin [Tue, 14 Apr 2009 03:30:26 +0000 (20:30 -0700)]
pxelinux: fix the new timeout code
Fix the new timeout code; in particular:
- on receiving an ERROR packet, we fake an immediate timeout;
this has to be done differently now.
- fix missing decrement of timeout counter.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 03:06:00 +0000 (20:06 -0700)]
com32: use xfer_buf_seg as the bounce buffer
We cannot realistically realign comboot_seg without breaking com16
modules (which have the DOS-derived assumption that they own the rest
of low memory.) However, we can use xfer_buf_seg as the com32 bounce
buffer, which allows us to retain the benefit of a 64K-aligned buffer.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:43:35 +0000 (19:43 -0700)]
doc: add note about KVM restriction on CS.base
Add note about KVM restrictions on CS.base before entering real mode.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:32:00 +0000 (19:32 -0700)]
core: don't misalign xfer_buf_seg
xfer_buf_seg is used for bulk transfers, and we really don't want
to break it up in order to avoid 64K DMA boundaries.
Note: the same is true for the com32 bounce buffer, which is
real_mode_seg. However, there are hard assumptions in the code that
real_mode_seg is the last segment; those need to be cleaned up, or we
need to verify that xfer_buf_seg can be used as the com32 bounce
buffer.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:28:20 +0000 (19:28 -0700)]
Something slightly saner for DummyTSS
DummyTSS should hopefully never be actually used.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:25:50 +0000 (19:25 -0700)]
GDT: remove unused DS16_4G and SS16 descriptors
We no longer use the DS16_4G and SS16 descriptors; we now use 32-bit
protected mode for all "big" work.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:19:34 +0000 (19:19 -0700)]
shuffle_rm.c: minor style cleanup
Try to make the code just a little easier to read.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 14 Apr 2009 02:11:30 +0000 (19:11 -0700)]
shuffler: work around KVM problem with the new shuffler
KVM uses V86 mode to simulate real mode. This causes problems with
the new shuffler. This changes the shuffler handover to be in
16-bit protected mode instead, and requires the stub to do the actual
entry to real mode. For the KVM hack to work, all segments must have:
(seg.base & 0xfff0000f) == 0 && seg.limit == 0xffff
As a result, we have to make sure the real-mode entry stub is
paragraph-aligned, lest we violate the first criterion.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 13 Apr 2009 22:39:04 +0000 (15:39 -0700)]
core: move vgafontbuf out of the zero segment
vgafontbuf is one of the largest (bss) structures in the zero segment,
together with the trackbuf (which we realistically can't move.)
Create a new "auxilliary segment" for fixed-sized data which needs to
be in the low megabyte, but not necessarily in the zero segment.
This pushes up the low memory usage, but only by 8K.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 13 Apr 2009 22:09:41 +0000 (15:09 -0700)]
core: add alignz macro (analogous to "alignb") for zero-pad align
Add a new macro "alignz" to align with zero bytes; use to align inside
a data section (i.e. a progbits section which doesn't contain code.)
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 13 Apr 2009 22:04:20 +0000 (15:04 -0700)]
core/macros.inc: iterative definition of asciidec
A cleaner iterative defintion of the asciidec macro.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 13 Apr 2009 21:13:52 +0000 (14:13 -0700)]
bootrm: allow entering with IF=1; smarter stub location
Change the stub location algorithm to prefer low memory above
0x800; above 0x510 if that is unavailable. Also add the ability
to invoke the real-mode code with IF=1 if so is desired.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 13 Apr 2009 20:54:33 +0000 (13:54 -0700)]
pxelinux: use a table-driven backoff
Use a table-driven backoff so we can provide a backoff which doesn't
increase as sharply (by integral powers of two) as before. Rather
than worrying about doing fractional multiplication, simply provide a
backoff table.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Mon, 13 Apr 2009 17:37:37 +0000 (10:37 -0700)]
pxelinux: be more aggressive about retransmitting ACKs
Some PXE stacks drop packets on transmit on a regular basis. Avoid
severe slowdowns by being much more aggressive about ACK
retransmissions.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 13 Apr 2009 17:36:36 +0000 (10:36 -0700)]
Makefile: add missing MBR variants to BOBJECTS
Add missing variants to BOBJECTS.
H. Peter Anvin [Sun, 12 Apr 2009 23:36:35 +0000 (16:36 -0700)]
pxelinux: be more paranoid about saving/restoring flags
Save and restore flags around writechr and the PXE stack call, just in
case the underlying stack does something weird.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 9 Apr 2009 18:46:19 +0000 (11:46 -0700)]
Merge commit 'syslinux-3.74'
Christophe Fergeau [Thu, 9 Apr 2009 09:09:55 +0000 (11:09 +0200)]
gfxboot: parse DEFAULT keywork in syslinux config file
The gfxboot COM module currently ignores the DEFAULT entry set in
syslinux config file and always default to 0 instead. This patch parses
DEFAULT entries in the config file and set the default entry
accordingly.
Signed-off-by: Christophe Fergeau <cfergeau@mandriva.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 8 Apr 2009 23:41:29 +0000 (16:41 -0700)]
Call the next version 3.80
The new shuffler machinery is a major enough change that it's probably
a good idea to bump the version number to 3.80.
H. Peter Anvin [Wed, 8 Apr 2009 23:38:25 +0000 (16:38 -0700)]
Merge branch 'new-shuffler'
Sebastian Herbszt [Wed, 8 Apr 2009 19:08:14 +0000 (21:08 +0200)]
hdt: clear memtest_label
Clear memtest_label in init_hardware().
H. Peter Anvin [Wed, 8 Apr 2009 23:17:55 +0000 (16:17 -0700)]
com32: the keyboard map size is in CX not in DX
Impact: fixes kbdmap.c32
The keyboard map size is passed in CX, not in DX. Fix typo in
libcom32.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Sebastian Herbszt [Wed, 8 Apr 2009 19:02:52 +0000 (21:02 +0200)]
gfxboot module: fix copyright notice
Include copyright notices of reused code.
H. Peter Anvin [Tue, 7 Apr 2009 22:40:24 +0000 (15:40 -0700)]
NEWS: document gfxboot.com
Sebastian Herbszt [Sun, 5 Apr 2009 21:19:49 +0000 (23:19 +0200)]
Gfxboot COMBOOT module
A COMBOOT module to interface to Steffen Winterfeldt's Gfxboot
graphical front end (http://gfxboot.sourceforge.net/).
H. Peter Anvin [Mon, 6 Apr 2009 23:56:51 +0000 (16:56 -0700)]
Merge commit 'hdt/master'
H. Peter Anvin [Mon, 6 Apr 2009 23:38:28 +0000 (16:38 -0700)]
Add back "install: all" to the com32 devel directories
"make install" in the com32 directory currently installs the devel
environment, which should be build using the host toolchain... so make
it so.
H. Peter Anvin [Mon, 6 Apr 2009 23:33:43 +0000 (16:33 -0700)]
Makefiles: try to make "make install" do the right thing
One more attempt at getting semi-sanity to "make install".
Realistically, the install/netinstall/install-all/... needs to be
pushed into the com32 Makefiles, but this is at least a quick hack.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 6 Apr 2009 22:19:21 +0000 (15:19 -0700)]
Implement MENU SAVE; fix COM32 setadv function
Implement MENU SAVE, which allows the menu system to retain the
previous selection from one boot to another. In the process, fix the
syslinux_setadv() function.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 6 Apr 2009 21:10:10 +0000 (14:10 -0700)]
core: unbreak "make depend", fix make spotless
cmdline.inc: Unbreak "make depend"
Makefile: fix "make spotless"
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 6 Apr 2009 21:02:04 +0000 (14:02 -0700)]
NEWS: document cmdline fix
H. Peter Anvin [Mon, 6 Apr 2009 20:59:47 +0000 (13:59 -0700)]
ipappend: clean up ipappend code; add ipappend to plain cmdline
ipappend information is needed for the plain cmdline too, since it may
be used by linux.c32. While we're at it, clean up the handling of
ipappend lines -- we can rather obviously use a loop for them.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Erwan Velu [Mon, 6 Apr 2009 10:58:11 +0000 (12:58 +0200)]
hdt: Don't display unsupported modes
Impact: Prevent from displaying 0x0 modes
Some vesa bioses reports 0x0 modes, no need to display them
Omair Eschkenazi [Sat, 4 Apr 2009 23:27:57 +0000 (16:27 -0700)]
Provide a shared MIME file for the LSS16 image format
Add a MIME file for the LSS16 image format. Currently only included
in source, as it is somewhat unclear what the proper way to package
this thing is.
H. Peter Anvin [Sat, 4 Apr 2009 23:08:47 +0000 (16:08 -0700)]
syslinux.ld: fix comment syntax
Fix build failure due to incorrect comment syntax in syslinux.ld.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 23:05:32 +0000 (16:05 -0700)]
memscan: adjust lower limit; saner handling of insane DOS memory sizes
Adjust the lower limit of DOS memory to 0x510; with the last known
BIOS byte in use at 0x500 (and only then for Print Screen) this makes
sense.
If the DOS memory size is clearly insane, fall back to using the EBDA
address.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 22:56:28 +0000 (15:56 -0700)]
Merge branch 'master' into new-shuffler
H. Peter Anvin [Sat, 4 Apr 2009 22:55:26 +0000 (15:55 -0700)]
memscan: protect 0-0x7c00 until the new shuffler is merged
Mark the memory range 0-0x7c00 unavailable until the new shuffler code
is ready, at which point we can go for a tighter bound.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 22:39:26 +0000 (15:39 -0700)]
Makefile: install new MBR variants; NEWS: document
Make the new MBR variants installables, and add to the NEWS file.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 22:36:37 +0000 (15:36 -0700)]
memdisk: fix comment syntax in memdisk.ld
Fix build failure due to incorrect comment syntax in memdisk.ld
H. Peter Anvin [Sat, 4 Apr 2009 22:33:29 +0000 (15:33 -0700)]
Merge branch 'ctrl-mbr'
H. Peter Anvin [Sat, 4 Apr 2009 22:32:24 +0000 (15:32 -0700)]
mbr: generate normal versions, force-80 versions, and ctrl-80 versions
Produce MBR variants with normal (DL) behavior, force to drive 80
behavior, and force to 80 on Ctrl pressed behavior.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 22:09:42 +0000 (15:09 -0700)]
Update copyright notices
Update copyright notices; add Intel copyright notices where
appropriate.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 22:07:09 +0000 (15:07 -0700)]
Update copyright notices
Update copyright notices; add Intel copyright notices where appropriate.
H. Peter Anvin [Sat, 4 Apr 2009 22:00:34 +0000 (15:00 -0700)]
Merge branch 'master' into new-shuffler
Conflicts:
com32/lib/syslinux/memmap.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Sat, 4 Apr 2009 21:48:10 +0000 (14:48 -0700)]
Update copyright notices; add Intel notices where appropriate
Update copyright notices. Per agreement with my new employer, Intel
Corporation, add Intel copyright notices where appropriate.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 3 Apr 2009 23:51:27 +0000 (16:51 -0700)]
Merge commit 'hdt/master'
H. Peter Anvin [Fri, 3 Apr 2009 23:50:27 +0000 (16:50 -0700)]
linux.c32: don't relocate the real-mode code *above* 0x90000
Do not relocate the real-mode code above address 0x90000... that would
not be prudent.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 3 Apr 2009 23:09:29 +0000 (16:09 -0700)]
linux.c32: make load_linux() support relocation
In the case where the preferred kernel locations are not available,
make load_linux() smart enough to be able to relocate the kernel if at
all possible.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 3 Apr 2009 22:08:44 +0000 (15:08 -0700)]
com32: add _t to scan_memory_callback
Change scan_memory_callback to scan_memory_callback_t
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 3 Apr 2009 22:02:37 +0000 (15:02 -0700)]
com32: merge all memory map discovery to one file
Merge the memory map discovery for malloc and the memory map discovery
for memmap into one file that scans memory and invokes a callback.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Erwan Velu [Fri, 3 Apr 2009 18:08:48 +0000 (20:08 +0200)]
hdt: Adding exit menu in menu mode
Impact: Users can now exit hdt :)
It's now possible to exit HDT properly. Thx to fcrozat report.
Erwan Velu [Fri, 3 Apr 2009 18:04:53 +0000 (20:04 +0200)]
hdt: Fixing aligment in about menu
Impact: cosmetic
Fixing contact in about mode
Erwan Velu [Fri, 3 Apr 2009 18:01:17 +0000 (20:01 +0200)]
hdt: Fixing author name
Impact: cosmetic
Fixing author name
H. Peter Anvin [Wed, 1 Apr 2009 20:50:58 +0000 (13:50 -0700)]
NEWS: document new com32 memory management
H. Peter Anvin [Wed, 1 Apr 2009 20:25:04 +0000 (13:25 -0700)]
com32: fix the argument order
Impact: bug fix
Fix the order of arguments to a com32 program.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 1 Apr 2009 20:20:24 +0000 (13:20 -0700)]
com32: make memory beyond the core HighMem available to malloc
Impact: should deal with memory holes more gracefully
Right now, if we find a memory hole, we simply don't use the memory
beyond that point. This makes it possible for com32 modules to
use that memory. After this, we should be able to add relocation
support to allow loading when the memory at 1 MB is unavailable.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 1 Apr 2009 07:15:53 +0000 (00:15 -0700)]
NEWS: fix typo
H. Peter Anvin [Wed, 1 Apr 2009 06:46:50 +0000 (23:46 -0700)]
shuffler: zero-extend the proper register for shuffle list length
The shuffle list length needs to be passed into the shuffler in ECX,
but when using the shuffler internally it is a 16-bit number, which
needs to be zero-extended. Zero-extend the proper register, please!
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Wed, 1 Apr 2009 06:04:40 +0000 (23:04 -0700)]
shuffler: use lss for real-mode return in simple_pm_call
Instead of doing weird stuff with BP and the stack, just do an atomic
reload of SS:ESP by using the LSS instruction.
H. Peter Anvin [Wed, 1 Apr 2009 06:04:08 +0000 (23:04 -0700)]
shuffler: minor cleanups in bcopyxx.inc
Minor cleanups: calling convention, documentation, etc.
H. Peter Anvin [Wed, 1 Apr 2009 06:03:09 +0000 (23:03 -0700)]
shuffler: reload EDI, ESI, ECX before calling shuffle_and_boot_raw
comapi_cleanup can clobber registers, so reload EDI, ESI, ECX before
calling shuffle_and_boot_raw.