people/xl0/gpxe.git
12 years agoAdded one more PCI ID
Michael Brown [Mon, 22 Oct 2007 15:24:09 +0000 (16:24 +0100)]
Added one more PCI ID

12 years agoEnsure that empty e820 regions are skipped even at the end of the
Michael Brown [Wed, 10 Oct 2007 19:12:25 +0000 (20:12 +0100)]
Ensure that empty e820 regions are skipped even at the end of the
memory map.  (We achieve this by setting CF on the last entry if it is
zero-length; this avoids the need to look ahead to see at each entry
if the *next* entry would be both the last entry and zero-length).

This fixes the "0kB base memory" error message upon starting Windows
2003 on a SunFire X2100.

12 years agoAdd a missing PCI ID that is tested as working.
Michael Brown [Wed, 10 Oct 2007 01:07:18 +0000 (02:07 +0100)]
Add a missing PCI ID that is tested as working.

12 years agoForce a netdevice poll in net_tx() before attempting to transmit
Michael Brown [Thu, 4 Oct 2007 13:46:56 +0000 (14:46 +0100)]
Force a netdevice poll in net_tx() before attempting to transmit
packet, to work around the problem whereby small TX rings get backed
up because we haven't yet poll()ed for TX completions.

12 years agoRedefine bzimage_exec_context::mem_limit to be the highest permissible
Michael Brown [Fri, 28 Sep 2007 00:23:06 +0000 (01:23 +0100)]
Redefine bzimage_exec_context::mem_limit to be the highest permissible
byte, rather than the number of permissible bytes (i.e. subtract one
from the value under the previous definition to get the value under
the new definition).

This avoids integer overflow on 64-bit kernels, where
bzhdr.initrd_addr_max may be 0xffffffffffffffff; under the old
behaviour we set mem_limit equal to initrd_addr_max+1, which meant it
ended up as zero.  Kernel loads would fail with ENOBUFS.

13 years agoQuick and very dirty hack to get r8169 driver working again, prior to
Michael Brown [Wed, 26 Sep 2007 16:58:51 +0000 (17:58 +0100)]
Quick and very dirty hack to get r8169 driver working again, prior to
any rewrite.

13 years agoStandardise DBG_PRINTF()->DBG(), and remove custom definitions for
Michael Brown [Wed, 26 Sep 2007 16:38:36 +0000 (17:38 +0100)]
Standardise DBG_PRINTF()->DBG(), and remove custom definitions for
DBG_PRINTF() and assert().

13 years agoSwitch rm_ss and rm_sp back to being words; it'll make it less
Michael Brown [Tue, 25 Sep 2007 19:16:32 +0000 (20:16 +0100)]
Switch rm_ss and rm_sp back to being words; it'll make it less
confusing to read the code.

13 years agoDon't use the "rep ss movsb" trick to copy the RM stack to the PM
Michael Brown [Tue, 25 Sep 2007 19:14:20 +0000 (20:14 +0100)]
Don't use the "rep ss movsb" trick to copy the RM stack to the PM
stack; it breaks vmxassist.

13 years agorm_ss, rm_sp, and pm_esp don't need to be accessed from anywhere
Michael Brown [Tue, 25 Sep 2007 18:20:38 +0000 (19:20 +0100)]
rm_ss, rm_sp, and pm_esp don't need to be accessed from anywhere
outside of librm.S.

13 years agoMinor refactoring to eliminate duplication.
Michael Brown [Tue, 25 Sep 2007 18:06:38 +0000 (19:06 +0100)]
Minor refactoring to eliminate duplication.

13 years agoUse full protected mode for access to high memory within prefix, to
Michael Brown [Tue, 25 Sep 2007 17:01:15 +0000 (18:01 +0100)]
Use full protected mode for access to high memory within prefix, to
work around limitations in real-mode virtualisation support on Intel
VT-capable chips.

13 years agoAdded more verbose memory-map debugging.
Michael Brown [Fri, 21 Sep 2007 17:27:51 +0000 (18:27 +0100)]
Added more verbose memory-map debugging.

Added redundant call to get_memmap() in int13_boot() immediately
before jumping to boot sector, to assist in debugging.

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Fri, 21 Sep 2007 00:26:06 +0000 (01:26 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoInfinband requires longer link-layer addresses and headers than Ethernet.
Michael Brown [Fri, 21 Sep 2007 00:23:57 +0000 (01:23 +0100)]
Infinband requires longer link-layer addresses and headers than Ethernet.

13 years agoAdded defines for Infiniband files (which can't be committed to the
Michael Brown [Fri, 21 Sep 2007 00:19:04 +0000 (01:19 +0100)]
Added defines for Infiniband files (which can't be committed to the
main tree yet, but reserving the error numbers now avoids problems later).

13 years agoMinor debug message improvement.
Michael Brown [Mon, 17 Sep 2007 17:57:32 +0000 (18:57 +0100)]
Minor debug message improvement.

13 years agoUse RFC4390 whenever hardware address exceeds 16 bytes; this allows us
Michael Brown [Thu, 13 Sep 2007 00:53:04 +0000 (01:53 +0100)]
Use RFC4390 whenever hardware address exceeds 16 bytes; this allows us
to construct DHCP packets suitable for Infiniband.

13 years agoAdd const attribute to byte-swapping functions
Michael Brown [Sat, 15 Sep 2007 17:44:35 +0000 (18:44 +0100)]
Add const attribute to byte-swapping functions

13 years agoDon't get stuck in an infinite loop on negative integers!
Michael Brown [Sun, 16 Sep 2007 16:39:29 +0000 (17:39 +0100)]
Don't get stuck in an infinite loop on negative integers!

13 years agoAdd fls() for non-constant values.
Michael Brown [Sun, 16 Sep 2007 16:36:40 +0000 (17:36 +0100)]
Add fls() for non-constant values.

13 years agoMoved iobuf.h assertions outside the static inline functions, so that
Michael Brown [Mon, 17 Sep 2007 17:38:04 +0000 (18:38 +0100)]
Moved iobuf.h assertions outside the static inline functions, so that
the assert message's file and line number gives some clue as to the
real location of the problem.

Added similar assertions to list.h.

13 years agoAdded netdev_priv() to ease Linux driver compatibility.
Michael Brown [Thu, 13 Sep 2007 12:34:38 +0000 (13:34 +0100)]
Added netdev_priv() to ease Linux driver compatibility.

13 years agoRemoved file checked in accidentally
Michael Brown [Thu, 13 Sep 2007 11:57:25 +0000 (12:57 +0100)]
Removed file checked in accidentally

13 years agoBugfix: DHCP message type should be a one-byte option... (d'oh)
Michael Brown [Thu, 13 Sep 2007 00:13:57 +0000 (01:13 +0100)]
Bugfix: DHCP message type should be a one-byte option... (d'oh)

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Sun, 9 Sep 2007 12:31:38 +0000 (13:31 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoUse "/bin/echo -e" instead of shell builtin echo; some shells don't
Michael Brown [Sat, 8 Sep 2007 22:38:17 +0000 (23:38 +0100)]
Use "/bin/echo -e" instead of shell builtin echo; some shells don't
implement the -e option.

(Thanks to Jim McQuillan for this suggestion.)

13 years agoCheck for correct block number in tftp_rx_data().
Michael Brown [Sat, 8 Sep 2007 18:30:25 +0000 (19:30 +0100)]
Check for correct block number in tftp_rx_data().

(Problem observed by Clay McClure in VMware Fusion.)

13 years agoRe-added the kpxe prefix. I have no idea when this disappeared.
Michael Brown [Sat, 8 Sep 2007 14:57:01 +0000 (15:57 +0100)]
Re-added the kpxe prefix.  I have no idea when this disappeared.

13 years agoAdd the possibility to create .o files from arbitrary binary blobs.
Michael Brown [Thu, 6 Sep 2007 14:11:09 +0000 (15:11 +0100)]
Add the possibility to create .o files from arbitrary binary blobs.

13 years agoAdded missing .kpxe prefix.
Michael Brown [Thu, 6 Sep 2007 14:08:41 +0000 (15:08 +0100)]
Added missing .kpxe prefix.

13 years agoMinor style fix: structure fields are generally initialised in the
Michael Brown [Thu, 6 Sep 2007 12:37:47 +0000 (13:37 +0100)]
Minor style fix: structure fields are generally initialised in the
order in which they occur.

13 years agoTFTP default blocksize fix from Vampyre
Marty Connor [Thu, 30 Aug 2007 17:51:38 +0000 (13:51 -0400)]
TFTP default blocksize fix from Vampyre

13 years agoallpxes allroms alldsks fixes from Vampyre
Marty Connor [Thu, 30 Aug 2007 17:08:46 +0000 (13:08 -0400)]
allpxes allroms alldsks fixes from Vampyre

13 years agoAdd sis900 variant (patch from Vampyre)
Marty Connor [Thu, 30 Aug 2007 12:36:00 +0000 (08:36 -0400)]
Add sis900 variant (patch from Vampyre)

13 years agoMerge branch 'master' into curses
Holger Lubitz [Thu, 23 Aug 2007 21:15:54 +0000 (23:15 +0200)]
Merge branch 'master' into curses

Conflicts:

src/include/compiler.h
src/include/readline/readline.h

created by strings branch merge. resolved.

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Thu, 23 Aug 2007 21:10:59 +0000 (23:10 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoMerge commit 'holger/strings'
Michael Brown [Thu, 23 Aug 2007 20:51:57 +0000 (21:51 +0100)]
Merge commit 'holger/strings'

13 years agoAuto-assign drive number only if set to 0xff; almost all applications
Michael Brown [Thu, 23 Aug 2007 19:50:24 +0000 (20:50 +0100)]
Auto-assign drive number only if set to 0xff; almost all applications
require that we use drive 0x80, so it should probably be the default.

13 years agoAllow legacy "make bin/etherboot.%".
Michael Brown [Wed, 22 Aug 2007 22:10:00 +0000 (23:10 +0100)]
Allow legacy "make bin/etherboot.%".

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:30:24 +0000 (20:30 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:30:17 +0000 (20:30 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:30:11 +0000 (20:30 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:58 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:50 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:41 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:30 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:23 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:29:09 +0000 (20:29 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:28:47 +0000 (20:28 +0200)]
use malloc attribute

13 years agouse malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:28:23 +0000 (20:28 +0200)]
use malloc attribute

13 years agodefine malloc attribute
Holger Lubitz [Mon, 20 Aug 2007 18:28:11 +0000 (20:28 +0200)]
define malloc attribute

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:35:07 +0000 (00:35 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:59 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:46 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:39 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:32 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:17 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:34:04 +0000 (00:34 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:33:55 +0000 (00:33 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:33:51 +0000 (00:33 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:32:51 +0000 (00:32 +0200)]
__nonnull changes

13 years ago__nonnull changes
Holger Lubitz [Sun, 19 Aug 2007 22:32:36 +0000 (00:32 +0200)]
__nonnull changes

13 years agodefine __nonnull
Holger Lubitz [Wed, 1 Aug 2007 23:01:01 +0000 (01:01 +0200)]
define __nonnull

13 years agodefine __pure and __const
Holger Lubitz [Wed, 1 Aug 2007 22:27:54 +0000 (00:27 +0200)]
define __pure and __const

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Sun, 19 Aug 2007 20:30:42 +0000 (22:30 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Sat, 18 Aug 2007 23:29:29 +0000 (01:29 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoAdded error IDs for all files in drivers/net; they're likely to need them.
Michael Brown [Sat, 18 Aug 2007 23:29:27 +0000 (00:29 +0100)]
Added error IDs for all files in drivers/net; they're likely to need them.

13 years agoFix building on distros which use dash as the default shell.
Michael Brown [Sat, 18 Aug 2007 18:05:06 +0000 (19:05 +0100)]
Fix building on distros which use dash as the default shell.

13 years agoAdd barrier() primitive (was present in Eb5.4), used by some currently
Michael Brown [Sat, 18 Aug 2007 17:04:50 +0000 (18:04 +0100)]
Add barrier() primitive (was present in Eb5.4), used by some currently
out-of-tree driver code.

13 years agoSeparate out arch-independent parts of stdint.h
Michael Brown [Fri, 17 Aug 2007 18:51:08 +0000 (19:51 +0100)]
Separate out arch-independent parts of stdint.h

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Thu, 16 Aug 2007 19:50:19 +0000 (21:50 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoUse start_timer_nodelay() in protocols which rely on the retry timer
Michael Brown [Mon, 13 Aug 2007 18:03:33 +0000 (11:03 -0700)]
Use start_timer_nodelay() in protocols which rely on the retry timer
to generate the initial transmission; this cuts off around 0.3s per
instantiated connection.

13 years agoAdd start_timer_nodelay()
Michael Brown [Mon, 13 Aug 2007 17:59:00 +0000 (10:59 -0700)]
Add start_timer_nodelay()

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Mon, 13 Aug 2007 15:04:04 +0000 (17:04 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoBuild the all-driver images by default, and print instructions for usage.
Michael Brown [Fri, 10 Aug 2007 03:17:35 +0000 (20:17 -0700)]
Build the all-driver images by default, and print instructions for usage.

13 years agoAdd iBFT code derived from IBM document.
Michael Brown [Fri, 10 Aug 2007 00:44:20 +0000 (17:44 -0700)]
Add iBFT code derived from IBM document.

No Microsoft intellectual property was harmed in the production of
this code.

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Tue, 7 Aug 2007 23:01:09 +0000 (01:01 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoSet current working URI to be that of the executable image when
Michael Brown [Tue, 7 Aug 2007 13:50:12 +0000 (06:50 -0700)]
Set current working URI to be that of the executable image when
executing any image, not just a script.  (This will enable pxelinux to
use relative URIs, should it wish to.)

13 years agoRevert "malloc attribute changes"
Holger Lubitz [Mon, 6 Aug 2007 01:36:35 +0000 (03:36 +0200)]
Revert "malloc attribute changes"
wasn't meant for my local "master" branch ;)
This reverts commit 373022108ba389fb3d50a3d50f9baf64c6c82171.

13 years agoMerge branch 'master' of git://git.etherboot.org/scm/gpxe
Holger Lubitz [Sun, 5 Aug 2007 17:02:54 +0000 (19:02 +0200)]
Merge branch 'master' of git://git.etherboot.org/scm/gpxe

13 years agoAdd PXE FILE API.
Michael Brown [Sat, 4 Aug 2007 00:23:37 +0000 (01:23 +0100)]
Add PXE FILE API.

13 years agoMake read_user() non-blocking, and add select() call.
Michael Brown [Sat, 4 Aug 2007 00:22:52 +0000 (01:22 +0100)]
Make read_user() non-blocking, and add select() call.

13 years agoDisplay name and status of each file as it is downloaded.
Michael Brown [Fri, 3 Aug 2007 11:49:21 +0000 (12:49 +0100)]
Display name and status of each file as it is downloaded.

13 years agoPrint multiple commands per line in help
Michael Brown [Fri, 3 Aug 2007 00:03:21 +0000 (01:03 +0100)]
Print multiple commands per line in help

13 years agoPlace multiboot command lines in base memory; Xen won't pick them up
Michael Brown [Thu, 2 Aug 2007 22:09:03 +0000 (23:09 +0100)]
Place multiboot command lines in base memory; Xen won't pick them up
otherwise.  :(

13 years agomalloc attribute changes
Holger Lubitz [Mon, 23 Jul 2007 15:48:39 +0000 (17:48 +0200)]
malloc attribute changes

13 years agoError message cleanups.
Michael Brown [Thu, 2 Aug 2007 19:27:50 +0000 (20:27 +0100)]
Error message cleanups.

13 years agoSet current working URI equal to script URI during script execution.
Michael Brown [Thu, 2 Aug 2007 19:27:19 +0000 (20:27 +0100)]
Set current working URI equal to script URI during script execution.

13 years agouri_get(NULL) and uri_put(NULL) are explicitly allowed.
Michael Brown [Thu, 2 Aug 2007 19:26:49 +0000 (20:26 +0100)]
uri_get(NULL) and uri_put(NULL) are explicitly allowed.

13 years agoAllow images to hold references to the originating URI.
Michael Brown [Thu, 2 Aug 2007 19:18:32 +0000 (20:18 +0100)]
Allow images to hold references to the originating URI.

Some shuffling around of the image management code; this needs tidying up.

13 years agoAllowed zero-cost enforced ordering of features in startup banner
Michael Brown [Thu, 2 Aug 2007 13:51:03 +0000 (14:51 +0100)]
Allowed zero-cost enforced ordering of features in startup banner
list.

Added FEATURE() macros to most relevant (non-driver) files.

13 years agoUse otherwise-useless byte in DHCP feature option as a version number
Michael Brown [Thu, 2 Aug 2007 03:36:00 +0000 (04:36 +0100)]
Use otherwise-useless byte in DHCP feature option as a version number

13 years agoAdd FEATURE() macro, plus code to display features at startup time,
Michael Brown [Thu, 2 Aug 2007 03:24:39 +0000 (04:24 +0100)]
Add FEATURE() macro, plus code to display features at startup time,
and generate DHCP options to indicate features to DHCP server (and to
PXE NBPs).

13 years agostrdup and strndup call malloc and are not pure
Holger Lubitz [Thu, 2 Aug 2007 01:04:44 +0000 (03:04 +0200)]
strdup and strndup call malloc and are not pure

13 years agofix gcc 4.2.1 warning: discards qualifiers from pointer target type
Holger Lubitz [Tue, 31 Jul 2007 16:43:09 +0000 (18:43 +0200)]
fix gcc 4.2.1 warning: discards qualifiers from pointer target type

13 years agofix gcc 4.2.1 warning: initialized field overwritten
Holger Lubitz [Tue, 31 Jul 2007 16:42:36 +0000 (18:42 +0200)]
fix gcc 4.2.1 warning: initialized field overwritten

13 years agoinclude more changes for x86_64
Holger Lubitz [Tue, 31 Jul 2007 15:19:35 +0000 (17:19 +0200)]
include more changes for x86_64

13 years agoremove old minorversion!=4 check (added -march a second time)
Holger Lubitz [Wed, 1 Aug 2007 21:32:42 +0000 (23:32 +0200)]
remove old minorversion!=4 check (added -march a second time)

13 years agoremove x86_64 comments from arch specific Config
Holger Lubitz [Wed, 1 Aug 2007 21:21:08 +0000 (23:21 +0200)]
remove x86_64 comments from arch specific Config
options are in main makefile now