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

12 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.

12 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

12 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.

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

12 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.

12 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 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 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 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 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

13 years agoCope with non-newline-terminated scripts.
Michael Brown [Thu, 2 Aug 2007 00:12:42 +0000 (01:12 +0100)]
Cope with non-newline-terminated scripts.

Print error status using strerror().

13 years agoAdd code for constructing single-file cpio archives on the fly
Michael Brown [Wed, 1 Aug 2007 22:10:30 +0000 (23:10 +0100)]
Add code for constructing single-file cpio archives on the fly

13 years agoInitrd concatenation now working
Michael Brown [Wed, 1 Aug 2007 14:29:15 +0000 (15:29 +0100)]
Initrd concatenation now working

13 years agoAllow loading of multiple initramfs images.
Michael Brown [Tue, 31 Jul 2007 17:09:18 +0000 (18:09 +0100)]
Allow loading of multiple initramfs images.

13 years agoAdded support for draft version of the AoE Boot Firmware Table.
Michael Brown [Tue, 31 Jul 2007 13:05:03 +0000 (14:05 +0100)]
Added support for draft version of the AoE Boot Firmware Table.

13 years agoFix endianness of "shelf" field
Michael Brown [Tue, 31 Jul 2007 02:48:43 +0000 (03:48 +0100)]
Fix endianness of "shelf" field

13 years agoAdd identifier for the network device into the DHCP request.
Michael Brown [Tue, 31 Jul 2007 02:32:22 +0000 (03:32 +0100)]
Add identifier for the network device into the DHCP request.

13 years agoCentralise construction of the DHCP request and response packets.
Michael Brown [Tue, 31 Jul 2007 02:02:21 +0000 (03:02 +0100)]
Centralise construction of the DHCP request and response packets.

13 years agoAdded the AoE boot information table as used by Vampyre's AoE
Michael Brown [Mon, 30 Jul 2007 22:58:59 +0000 (23:58 +0100)]
Added the AoE boot information table as used by Vampyre's AoE
initiator.  This table needs to be replaced by something similar to
iBFT (i.e. scanned for and identified by signature, rather than being
at a fixed address), but it works for now.

13 years agotls_change_cipher() can complain about null cipher and digest
Michael Brown [Mon, 30 Jul 2007 02:30:27 +0000 (03:30 +0100)]
tls_change_cipher() can complain about null cipher and digest
algorithms; we only need the pubkey check disabled (and only because
pubkey algorithms are not yet integrated into the crypto_algorithm
subsystem).

13 years agoChange #warnings to FIXMEs, so that we can build without NO_WERROR=1
Michael Brown [Mon, 30 Jul 2007 02:06:08 +0000 (03:06 +0100)]
Change #warnings to FIXMEs, so that we can build without NO_WERROR=1

13 years agoAllowed HTTPS to be a separately configurable feature.
Michael Brown [Mon, 30 Jul 2007 02:01:04 +0000 (03:01 +0100)]
Allowed HTTPS to be a separately configurable feature.

13 years agoAdded missing #include
Michael Brown [Mon, 30 Jul 2007 02:00:15 +0000 (03:00 +0100)]
Added missing #include

13 years agoInhibit compiler warning
Michael Brown [Mon, 30 Jul 2007 01:58:22 +0000 (02:58 +0100)]
Inhibit compiler warning

13 years agoTLS now working again.
Michael Brown [Mon, 30 Jul 2007 01:48:38 +0000 (02:48 +0100)]
TLS now working again.

13 years agoUpgrade AXTLS import to version 1.1.5-a
Michael Brown [Mon, 30 Jul 2007 01:48:00 +0000 (02:48 +0100)]
Upgrade AXTLS import to version 1.1.5-a

13 years agoImport various libgcc functions from syslinux.
Michael Brown [Mon, 30 Jul 2007 01:37:42 +0000 (02:37 +0100)]
Import various libgcc functions from syslinux.

Experimentation reveals that gcc ignores -mrtd for the implicit
arithmetic functions (e.g. __udivdi3), but not for the implicit
memcpy() and memset() functions.  Mark the implicit arithmetic
functions with __attribute__((cdecl)) to compensate for this.

(Note: we cannot mark with with __cdecl, because we define __cdecl to
incorporate regparm(0) as well.)

13 years agoGCC's optimiser seems to screw up if this is left static...
Michael Brown [Mon, 30 Jul 2007 01:42:32 +0000 (02:42 +0100)]
GCC's optimiser seems to screw up if this is left static...

13 years agoPreparation for adding tls.c
Michael Brown [Sun, 29 Jul 2007 16:16:00 +0000 (17:16 +0100)]
Preparation for adding tls.c

13 years agoAdded a simple pass-through filter layer for data transfer interfaces.
Michael Brown [Sun, 29 Jul 2007 15:05:14 +0000 (16:05 +0100)]
Added a simple pass-through filter layer for data transfer interfaces.

13 years agoDon't rely on retry.c's periodically calling currticks() in order to
Michael Brown [Sun, 29 Jul 2007 14:26:50 +0000 (15:26 +0100)]
Don't rely on retry.c's periodically calling currticks() in order to
allow the UNDI NIC interrupt to happen.

13 years agoAdded HMAC code from TLS project
Michael Brown [Sun, 29 Jul 2007 02:09:00 +0000 (03:09 +0100)]
Added HMAC code from TLS project

13 years agoQuick hack to get AoE back in to the tree, on a par with the current
Michael Brown [Sun, 29 Jul 2007 01:31:14 +0000 (02:31 +0100)]
Quick hack to get AoE back in to the tree, on a par with the current
iSCSI hack.

13 years agoApplied a modified version of holger's regparm patches.
Michael Brown [Sat, 28 Jul 2007 23:17:25 +0000 (00:17 +0100)]
Applied a modified version of holger's regparm patches.

13 years agoMerge branch 'symcheck2'
Michael Brown [Sat, 28 Jul 2007 21:55:31 +0000 (22:55 +0100)]
Merge branch 'symcheck2'

13 years agoMake has_key() a static inline, rather than omitting it altogether.
Michael Brown [Sat, 28 Jul 2007 21:55:17 +0000 (22:55 +0100)]
Make has_key() a static inline, rather than omitting it altogether.

13 years agoRevert "make bool m_echo static" - I suspect this to be defined by spec
Michael Brown [Sat, 28 Jul 2007 21:52:20 +0000 (22:52 +0100)]
Revert "make bool m_echo static" - I suspect this to be defined by spec

This reverts commit 3cb133d27daf11e77fe48d44e1ce639711f903de.

13 years agoRevert "make isspace static" - prototype for isspace() is defined by C99, so can...
Holger Lubitz [Sat, 28 Jul 2007 21:20:44 +0000 (23:20 +0200)]
Revert "make isspace static" - prototype for isspace() is defined by C99, so can't be static

This reverts commit ed06bd8a89d109c4f884f2aa4c23452d60ff58d0.

13 years agoRevert "make __udivmoddi4 static" - gcc links to it implicitly
Holger Lubitz [Sat, 28 Jul 2007 21:20:00 +0000 (23:20 +0200)]
Revert "make __udivmoddi4 static" - gcc links to it implicitly

This reverts commit 9e7b165017afe1ba82c29d9e914ae85f6f2798c6.

13 years agoEnsure clock line is in the idle state before asserting chip select.
Michael Brown [Sat, 28 Jul 2007 15:05:41 +0000 (16:05 +0100)]
Ensure clock line is in the idle state before asserting chip select.

13 years agomake struct velocity_info vptx static
Holger Lubitz [Fri, 27 Jul 2007 20:07:01 +0000 (22:07 +0200)]
make struct velocity_info vptx static

13 years agomake struct velocity_info_tbl *info static
Holger Lubitz [Fri, 27 Jul 2007 20:05:47 +0000 (22:05 +0200)]
make struct velocity_info_tbl *info static

13 years agomake struct nsx static
Holger Lubitz [Fri, 27 Jul 2007 20:03:04 +0000 (22:03 +0200)]
make struct nsx static

13 years agomake struct bnx2 bnx2 static
Holger Lubitz [Fri, 27 Jul 2007 20:02:11 +0000 (22:02 +0200)]
make struct bnx2 bnx2 static

13 years agomake multiboot_load static
Holger Lubitz [Fri, 27 Jul 2007 20:01:23 +0000 (22:01 +0200)]
make multiboot_load static

13 years agomake nbi_load static
Holger Lubitz [Fri, 27 Jul 2007 20:00:51 +0000 (22:00 +0200)]
make nbi_load static

13 years agomake http_open static
Holger Lubitz [Fri, 27 Jul 2007 19:59:09 +0000 (21:59 +0200)]
make http_open static

13 years agomake eltorito_load static
Holger Lubitz [Fri, 27 Jul 2007 19:58:31 +0000 (21:58 +0200)]
make eltorito_load static

13 years agomake cards_found static and add missing initialization
Holger Lubitz [Fri, 27 Jul 2007 19:50:12 +0000 (21:50 +0200)]
make cards_found static and add missing initialization

13 years agomake bool m_echo static
Holger Lubitz [Fri, 27 Jul 2007 19:47:28 +0000 (21:47 +0200)]
make bool m_echo static

13 years agoremove has_key by #if 0'ing out
Holger Lubitz [Fri, 27 Jul 2007 19:46:21 +0000 (21:46 +0200)]
remove has_key by #if 0'ing out

13 years agomake _wgetc static
Holger Lubitz [Fri, 27 Jul 2007 19:45:04 +0000 (21:45 +0200)]
make _wgetc static

13 years agoMerge branch 'master' into symcheck2
Holger Lubitz [Fri, 27 Jul 2007 19:40:38 +0000 (21:40 +0200)]
Merge branch 'master' into symcheck2

13 years agomake __udivmoddi4 static
Holger Lubitz [Fri, 27 Jul 2007 19:39:58 +0000 (21:39 +0200)]
make __udivmoddi4 static

13 years agomake RTL8169_READ_GMII_REG, RTL8169_WRITE_GMII_REG static
Holger Lubitz [Fri, 27 Jul 2007 19:39:31 +0000 (21:39 +0200)]
make RTL8169_READ_GMII_REG, RTL8169_WRITE_GMII_REG static

13 years agomake struct _softlabelkeys *slks static
Holger Lubitz [Fri, 27 Jul 2007 19:38:45 +0000 (21:38 +0200)]
make struct _softlabelkeys *slks static

13 years agomake add_ndp_entry static
Holger Lubitz [Fri, 27 Jul 2007 19:37:29 +0000 (21:37 +0200)]
make add_ndp_entry static

13 years agomake isspace static
Holger Lubitz [Fri, 27 Jul 2007 19:36:53 +0000 (21:36 +0200)]
make isspace static

13 years agomake md5_steps static
Holger Lubitz [Fri, 27 Jul 2007 19:36:16 +0000 (21:36 +0200)]
make md5_steps static

13 years agomake imgfill_cmdline static
Holger Lubitz [Fri, 27 Jul 2007 19:35:17 +0000 (21:35 +0200)]
make imgfill_cmdline static

13 years agodisable AES_convert_key by #if 0'ing it out (suggested by mcb30)
Holger Lubitz [Fri, 27 Jul 2007 19:33:53 +0000 (21:33 +0200)]
disable AES_convert_key by #if 0'ing it out (suggested by mcb30)

13 years agomake netboot() static
Holger Lubitz [Fri, 27 Jul 2007 19:31:45 +0000 (21:31 +0200)]
make netboot() static

13 years agodisable AES_convert_key by #if 0'ing it out (suggested by mcb30)
Holger Lubitz [Fri, 27 Jul 2007 19:31:11 +0000 (21:31 +0200)]
disable AES_convert_key by #if 0'ing it out (suggested by mcb30)

13 years agoPrepare for iBFT merge when possible. iscsiboot.c contains a really,
Michael Brown [Thu, 26 Jul 2007 01:13:38 +0000 (02:13 +0100)]
Prepare for iBFT merge when possible.  iscsiboot.c contains a really,
really ugly hack at present, but that doesn't hugely matter since I'm
aiming to change the interface to iSCSI devices anyway within the next
week.

13 years agoInhibit a spurious warning on GCC 4.0.1
Michael Brown [Wed, 25 Jul 2007 23:46:27 +0000 (00:46 +0100)]
Inhibit a spurious warning on GCC 4.0.1

13 years agoAdded two lines of code that were completely missing!
Michael Brown [Wed, 25 Jul 2007 12:32:02 +0000 (13:32 +0100)]
Added two lines of code that were completely missing!

13 years agoDon't overwrite %dl with a (potentially) modified drive number if we
Michael Brown [Wed, 25 Jul 2007 01:03:29 +0000 (02:03 +0100)]
Don't overwrite %dl with a (potentially) modified drive number if we
already handled the INT13 call.

13 years agoWe probably shouldn't leave interrupts disabled when starting an OS.
Michael Brown [Wed, 25 Jul 2007 01:02:24 +0000 (02:02 +0100)]
We probably shouldn't leave interrupts disabled when starting an OS.

13 years agoAdd per-file error identifiers
Michael Brown [Tue, 24 Jul 2007 16:11:31 +0000 (17:11 +0100)]
Add per-file error identifiers

13 years agoDefine -DOBJECT when generating Makefile rules, for consistency.
Michael Brown [Tue, 24 Jul 2007 14:19:09 +0000 (15:19 +0100)]
Define -DOBJECT when generating Makefile rules, for consistency.

Inhibit -Werror when generating Makefile rules, to prevent warnings
from killing the dependency list.

13 years agoInclude errno.h in the few drivers which use it, rather than in nic.h
Michael Brown [Tue, 24 Jul 2007 13:05:32 +0000 (14:05 +0100)]
Include errno.h in the few drivers which use it, rather than in nic.h

13 years agoAllow -Werror to be temporarily disabled using "make NO_WERROR=1"
Michael Brown [Tue, 24 Jul 2007 13:01:14 +0000 (14:01 +0100)]
Allow -Werror to be temporarily disabled using "make NO_WERROR=1"

13 years agoRemove some obsolete sections of librm.h and libkir.h.
Michael Brown [Tue, 24 Jul 2007 11:46:07 +0000 (12:46 +0100)]
Remove some obsolete sections of librm.h and libkir.h.

Add some of the missing parts to libkir.h.

13 years agoWe can finally enable -Werror :)
Michael Brown [Tue, 24 Jul 2007 11:43:11 +0000 (12:43 +0100)]
We can finally enable -Werror :)

13 years agoMerge branch 'master' of rom.etherboot.org:/pub/scm/gpxe
Michael Brown [Tue, 24 Jul 2007 11:37:09 +0000 (12:37 +0100)]
Merge branch 'master' of rom.etherboot.org:/gpxe

13 years agoChange #warning to FIXME for ns8390.c
Marty Connor [Mon, 23 Jul 2007 01:00:55 +0000 (21:00 -0400)]
Change #warning to FIXME for ns8390.c

This driver really needs to be rewritten.
It tries to build both ISA and PCI images,
and makes life diffifult for the build system
and rom-o-matic.net.  The warning was just a reminder
that it needs to be cleaned up and re-factored
to split the PCI and ISA drivers.

13 years agoChange #warning to FIXME for depca
Marty Connor [Mon, 23 Jul 2007 00:56:26 +0000 (20:56 -0400)]
Change #warning to FIXME for depca

This ancient ISA driver should probably be removed.
It is hard to get a card to test it with, and there
are comments to the effect that it cannot work with
relocation.  I would be quite interested to get a
bug report by someone who actually has this card.

13 years agoChanged #warning to FIXME for nvo hack warning.
Marty Connor [Mon, 23 Jul 2007 00:52:32 +0000 (20:52 -0400)]
Changed #warning to FIXME for nvo hack warning.

13 years agoAdd NIC to targets that are always made.
Marty Connor [Mon, 23 Jul 2007 00:41:53 +0000 (20:41 -0400)]
Add NIC to targets that are always made.

Even though it is only currently used for rom-o-matic.net code,
it is good to make sure it gets built, and that the parsing code
is working.

13 years agoMinor debug improvement
Michael Brown [Thu, 19 Jul 2007 16:01:21 +0000 (17:01 +0100)]
Minor debug improvement

13 years agoDon't trash the %ecx value returned by relocate(). This was causing
Michael Brown [Thu, 19 Jul 2007 14:54:33 +0000 (15:54 +0100)]
Don't trash the %ecx value returned by relocate().  This was causing
us to round down the size for the relocation copy to the nearest 64kB
(+0x10 bytes); this just happened to work on most machines because the
last 64kB of the image is all-zeroes anyway (it's the .bss).

13 years agoRemove INT 13,4b handler; it represents an incomplete feature (CD-ROM
Michael Brown [Thu, 19 Jul 2007 10:16:05 +0000 (11:16 +0100)]
Remove INT 13,4b handler; it represents an incomplete feature (CD-ROM
emulation support) for an unknown purpose, and breaks grub.

13 years agoCompleted definition of struct int13_cdrom_specification, and moved to
Michael Brown [Thu, 19 Jul 2007 10:15:01 +0000 (11:15 +0100)]
Completed definition of struct int13_cdrom_specification, and moved to
int13.h.

13 years agoReal-mode code might set the direction flag, which would cause carnage.
Michael Brown [Tue, 17 Jul 2007 12:46:37 +0000 (13:46 +0100)]
Real-mode code might set the direction flag, which would cause carnage.

13 years agoMove .zinfo to libprefix.S; it doesn't belong with the decompression code.
Michael Brown [Tue, 17 Jul 2007 11:52:54 +0000 (12:52 +0100)]
Move .zinfo to libprefix.S; it doesn't belong with the decompression code.