people/xl0/gpxe.git
13 years agoVersion increment in preparation for release
Marty Connor [Fri, 2 Mar 2007 16:06:46 +0000 (16:06 +0000)]
Version increment in preparation for release

13 years agoRemove no-longer-used variable
Michael Brown [Mon, 19 Feb 2007 17:31:20 +0000 (17:31 +0000)]
Remove no-longer-used variable

13 years agoFix some bad pointer arithmatic in the tg3 driver that was causing the dynamic memory...
James Harper [Sat, 10 Feb 2007 00:28:41 +0000 (00:28 +0000)]
Fix some bad pointer arithmatic in the tg3 driver that was causing the dynamic memory pool to be corrupted (or worse)

13 years agoFix padding problem - from Michael
James Harper [Sat, 10 Feb 2007 00:27:46 +0000 (00:27 +0000)]
Fix padding problem - from Michael

13 years agoAllow queries in GET requests mcb-xen-demo-2
Michael Brown [Thu, 1 Feb 2007 21:01:47 +0000 (21:01 +0000)]
Allow queries in GET requests

13 years agoAdd ability to read serial number from SMBIOS
Michael Brown [Thu, 1 Feb 2007 20:52:12 +0000 (20:52 +0000)]
Add ability to read serial number from SMBIOS

13 years agoSSL needs quite a lot of spare memory
Michael Brown [Thu, 1 Feb 2007 09:38:16 +0000 (09:38 +0000)]
SSL needs quite a lot of spare memory

13 years agoRequired for public key extraction
Michael Brown [Thu, 1 Feb 2007 09:13:27 +0000 (09:13 +0000)]
Required for public key extraction

13 years agoSSL requires inordinately large data storage
Michael Brown [Thu, 1 Feb 2007 07:22:13 +0000 (07:22 +0000)]
SSL requires inordinately large data storage

13 years agoDon't pass through zero-length requests
Michael Brown [Thu, 1 Feb 2007 07:18:56 +0000 (07:18 +0000)]
Don't pass through zero-length requests

13 years agoSHA1_DIGEST_SIZE also available as a static constant
Michael Brown [Thu, 1 Feb 2007 06:36:45 +0000 (06:36 +0000)]
SHA1_DIGEST_SIZE also available as a static constant

13 years agoMake context sizes available for statically-allocated structures
Michael Brown [Thu, 1 Feb 2007 05:48:56 +0000 (05:48 +0000)]
Make context sizes available for statically-allocated structures

13 years agoVanilla copies from axtls
Michael Brown [Thu, 1 Feb 2007 04:20:12 +0000 (04:20 +0000)]
Vanilla copies from axtls

13 years agoQuick hacks to get it working
Michael Brown [Thu, 1 Feb 2007 02:20:35 +0000 (02:20 +0000)]
Quick hacks to get it working

13 years agoAdd dummy setiv method
Michael Brown [Thu, 1 Feb 2007 02:19:16 +0000 (02:19 +0000)]
Add dummy setiv method

13 years agoFix prototypes
Michael Brown [Thu, 1 Feb 2007 02:18:56 +0000 (02:18 +0000)]
Fix prototypes

13 years agoMore assertions
Michael Brown [Thu, 1 Feb 2007 02:18:22 +0000 (02:18 +0000)]
More assertions

13 years agoAlso print out stack pointer (with optional stack dump)
Michael Brown [Thu, 1 Feb 2007 02:17:59 +0000 (02:17 +0000)]
Also print out stack pointer (with optional stack dump)

13 years agoPlaceholder
Michael Brown [Thu, 1 Feb 2007 02:17:33 +0000 (02:17 +0000)]
Placeholder

13 years agoAssert that division result is correct
Michael Brown [Wed, 31 Jan 2007 23:58:52 +0000 (23:58 +0000)]
Assert that division result is correct

13 years agoAdded __umoddi3
Michael Brown [Wed, 31 Jan 2007 22:26:14 +0000 (22:26 +0000)]
Added __umoddi3

13 years agoOriginal axtls RSA code
Michael Brown [Wed, 31 Jan 2007 22:18:29 +0000 (22:18 +0000)]
Original axtls RSA code

13 years agoAdded wrapper for AXTLS AES code
Michael Brown [Wed, 31 Jan 2007 18:09:20 +0000 (18:09 +0000)]
Added wrapper for AXTLS AES code

13 years agoAdded setiv method
Michael Brown [Wed, 31 Jan 2007 17:58:36 +0000 (17:58 +0000)]
Added setiv method

13 years agoAdd wrapper around axtls' sha1 code
Michael Brown [Wed, 31 Jan 2007 12:24:01 +0000 (12:24 +0000)]
Add wrapper around axtls' sha1 code

13 years agoAdding missing include
Michael Brown [Wed, 31 Jan 2007 12:19:50 +0000 (12:19 +0000)]
Adding missing include

13 years agoMade most of the build much quieter
Michael Brown [Wed, 31 Jan 2007 11:06:36 +0000 (11:06 +0000)]
Made most of the build much quieter

13 years agoWe need this, I think
Michael Brown [Wed, 31 Jan 2007 03:50:49 +0000 (03:50 +0000)]
We need this, I think

13 years agoForce inlining
Michael Brown [Wed, 31 Jan 2007 03:50:31 +0000 (03:50 +0000)]
Force inlining

13 years agoPlaceholder for TLS insertion
Michael Brown [Wed, 31 Jan 2007 03:47:42 +0000 (03:47 +0000)]
Placeholder for TLS insertion

13 years agoAdd HTTPS port
Michael Brown [Wed, 31 Jan 2007 03:44:38 +0000 (03:44 +0000)]
Add HTTPS port

13 years agoFilter insertion now actually works
Michael Brown [Wed, 31 Jan 2007 03:43:59 +0000 (03:43 +0000)]
Filter insertion now actually works

13 years agoSwap downstream/upstream order so that debug messages for filters show
Michael Brown [Wed, 31 Jan 2007 03:43:40 +0000 (03:43 +0000)]
Swap downstream/upstream order so that debug messages for filters show
up in the same colour as debug messages for the application stream.

13 years ago...but not when it's being used as a digest algorithm...
Michael Brown [Wed, 31 Jan 2007 03:42:47 +0000 (03:42 +0000)]
...but not when it's being used as a digest algorithm...

13 years agoThe null crypto algorithm should at least copy data...
Michael Brown [Wed, 31 Jan 2007 03:42:07 +0000 (03:42 +0000)]
The null crypto algorithm should at least copy data...

13 years agoTidy up debug messages
Michael Brown [Wed, 31 Jan 2007 03:05:49 +0000 (03:05 +0000)]
Tidy up debug messages

13 years agoAdd insert_filter() function
Michael Brown [Wed, 31 Jan 2007 03:04:56 +0000 (03:04 +0000)]
Add insert_filter() function

13 years agoAdd null crypto algorithm
Michael Brown [Wed, 31 Jan 2007 03:04:31 +0000 (03:04 +0000)]
Add null crypto algorithm

13 years agoChanged to use the generic stream API.
Michael Brown [Wed, 31 Jan 2007 02:09:13 +0000 (02:09 +0000)]
Changed to use the generic stream API.

13 years agoFirst sketch of stream API
Michael Brown [Wed, 31 Jan 2007 00:40:35 +0000 (00:40 +0000)]
First sketch of stream API

13 years agoPlaceholder
Michael Brown [Tue, 30 Jan 2007 22:55:19 +0000 (22:55 +0000)]
Placeholder

13 years agoAdded blocksize for the benefit of HMAC code
Michael Brown [Tue, 30 Jan 2007 22:54:43 +0000 (22:54 +0000)]
Added blocksize for the benefit of HMAC code

13 years agoAdded cipher wrapper functions
Michael Brown [Tue, 30 Jan 2007 22:54:20 +0000 (22:54 +0000)]
Added cipher wrapper functions

13 years agoMissing check-in
Michael Brown [Tue, 30 Jan 2007 22:53:59 +0000 (22:53 +0000)]
Missing check-in

13 years agoGeneralise digest_algorithm to crypto_algorithm.
Michael Brown [Tue, 30 Jan 2007 14:55:17 +0000 (14:55 +0000)]
Generalise digest_algorithm to crypto_algorithm.

13 years agoLow-overhead filter streams
Michael Brown [Tue, 30 Jan 2007 12:17:03 +0000 (12:17 +0000)]
Low-overhead filter streams

13 years agoDefinition of a (hopefully) generic stream API
Michael Brown [Tue, 30 Jan 2007 12:16:36 +0000 (12:16 +0000)]
Definition of a (hopefully) generic stream API

13 years agoUse "dbg_stream" rather than "stream" as a variable name in
Michael Brown [Tue, 30 Jan 2007 10:12:19 +0000 (10:12 +0000)]
Use "dbg_stream" rather than "stream" as a variable name in
DBG_AC_IF(), to avoid namespace collisions.

13 years agoDon't call PXENV_STOP_UNDI in the kpxeprefix. This slighy breaks the
Michael Brown [Mon, 29 Jan 2007 15:21:10 +0000 (15:21 +0000)]
Don't call PXENV_STOP_UNDI in the kpxeprefix.  This slighy breaks the
clean separation between loading and starting, but does mean that more
PXE stacks survive the process.

13 years agoSplit bootsector execution code out into bootsector.c.
Michael Brown [Mon, 29 Jan 2007 04:21:38 +0000 (04:21 +0000)]
Split bootsector execution code out into bootsector.c.

Added basic El Torito ISO image boot capability

13 years agoKeep HTTP progress updated, and display a progress indicator during the
Michael Brown [Mon, 29 Jan 2007 04:19:45 +0000 (04:19 +0000)]
Keep HTTP progress updated, and display a progress indicator during the
download

13 years agoAdded async_block_progress() and default SIGUPDATE handler.
Michael Brown [Mon, 29 Jan 2007 04:15:24 +0000 (04:15 +0000)]
Added async_block_progress() and default SIGUPDATE handler.

13 years agoMoved most buffer debug messages to DBG2.
Michael Brown [Mon, 29 Jan 2007 04:12:29 +0000 (04:12 +0000)]
Moved most buffer debug messages to DBG2.

Make expand_buffer() a non-inline function, so that we can add debug
messages.

Expandable buffers now don't *always* round up to the next power of two.
This allows e.g. loading a 137MB ISO image on a machine with only 256MB
RAM...

13 years agoShould be correct for building RSA
Michael Brown [Sun, 28 Jan 2007 19:50:43 +0000 (19:50 +0000)]
Should be correct for building RSA

13 years agoHandle (64-bit) / (32-bit) = (64-bit), i.e. one step beyond that
Michael Brown [Sun, 28 Jan 2007 19:34:17 +0000 (19:34 +0000)]
Handle (64-bit) / (32-bit) = (64-bit), i.e. one step beyond that
provided by the divl instruction.

13 years agoAdd matrixssl directory
Michael Brown [Fri, 26 Jan 2007 04:36:50 +0000 (04:36 +0000)]
Add matrixssl directory

13 years agoAvoid barfing on gcc's implicit memcpy()s
Michael Brown [Fri, 26 Jan 2007 04:14:25 +0000 (04:14 +0000)]
Avoid barfing on gcc's implicit memcpy()s

13 years agoAllow MatrixSSL code to compile inside gPXE
Michael Brown [Fri, 26 Jan 2007 03:50:17 +0000 (03:50 +0000)]
Allow MatrixSSL code to compile inside gPXE

13 years agoMove tolower() etc to ctype.h as per ISO C
Michael Brown [Fri, 26 Jan 2007 03:25:19 +0000 (03:25 +0000)]
Move tolower() etc to ctype.h as per ISO C

13 years agoAdd 64-bit rotates
Michael Brown [Fri, 26 Jan 2007 02:53:30 +0000 (02:53 +0000)]
Add 64-bit rotates

13 years agoBuild external axtls code
Michael Brown [Fri, 26 Jan 2007 02:03:34 +0000 (02:03 +0000)]
Build external axtls code

13 years agoAdd aes.c and required headers from axtls tree
Michael Brown [Fri, 26 Jan 2007 01:59:37 +0000 (01:59 +0000)]
Add aes.c and required headers from axtls tree

13 years agoEnable the axtls code to at least build within gPXE
Michael Brown [Fri, 26 Jan 2007 01:55:34 +0000 (01:55 +0000)]
Enable the axtls code to at least build within gPXE

13 years ago#if 0 out for now
Michael Brown [Fri, 26 Jan 2007 01:42:16 +0000 (01:42 +0000)]
#if 0 out for now

13 years agoYet more synonyms that people tend to use.
Michael Brown [Fri, 26 Jan 2007 01:30:16 +0000 (01:30 +0000)]
Yet more synonyms that people tend to use.

13 years agoHelp quick testing of building Linux code inside gPXE
Michael Brown [Wed, 24 Jan 2007 23:38:05 +0000 (23:38 +0000)]
Help quick testing of building Linux code inside gPXE

13 years agoAdd Linux-compatible rol32/ror32 functions. Amazingly, gcc will
Michael Brown [Wed, 24 Jan 2007 23:31:58 +0000 (23:31 +0000)]
Add Linux-compatible rol32/ror32 functions.  Amazingly, gcc will
optimise these down to the correct single "roll"/"rorl" instruction.

13 years agoUse base "0" in strtoul for consistency with "mem="
Michael Brown [Wed, 24 Jan 2007 22:54:08 +0000 (22:54 +0000)]
Use base "0" in strtoul for consistency with "mem="

13 years ago"vga=" is specified in decimal, not hex.
Michael Brown [Mon, 22 Jan 2007 23:56:24 +0000 (23:56 +0000)]
"vga=" is specified in decimal, not hex.

13 years agoMisread the definition of the type_of_loader field; it should include a
Michael Brown [Fri, 19 Jan 2007 15:40:01 +0000 (15:40 +0000)]
Misread the definition of the type_of_loader field; it should include a
version.

13 years agoAdded SIGKILL handler
Michael Brown [Fri, 19 Jan 2007 15:19:52 +0000 (15:19 +0000)]
Added SIGKILL handler

13 years agoZeroing out memory before using it can be so important.
Michael Brown [Fri, 19 Jan 2007 14:44:59 +0000 (14:44 +0000)]
Zeroing out memory before using it can be so important.

13 years agoActually, it's probably safer *not* to leave child processes hanging
Michael Brown [Fri, 19 Jan 2007 14:20:41 +0000 (14:20 +0000)]
Actually, it's probably safer *not* to leave child processes hanging
around which still hold pointers to variables belonging to our parent...

13 years agoNote that the SIGCHLD handler could be re-entered.
Michael Brown [Fri, 19 Jan 2007 14:10:13 +0000 (14:10 +0000)]
Note that the SIGCHLD handler could be re-entered.

13 years agoPropagate return status code from last child to fail.
Michael Brown [Fri, 19 Jan 2007 14:00:51 +0000 (14:00 +0000)]
Propagate return status code from last child to fail.

13 years agoHandle structured error codes.
Michael Brown [Fri, 19 Jan 2007 13:52:50 +0000 (13:52 +0000)]
Handle structured error codes.

13 years agoIntroduce structured error codes.
Michael Brown [Fri, 19 Jan 2007 13:15:26 +0000 (13:15 +0000)]
Introduce structured error codes.

13 years agoAdd POSIX prototypes for time functions, to allow external code to build
Michael Brown [Fri, 19 Jan 2007 03:09:22 +0000 (03:09 +0000)]
Add POSIX prototypes for time functions, to allow external code to build
more easily within gPXE.

Note that we don't have function bodies for these functions yet.

13 years agoSplit random number generation out into core/random.c, and create the
Michael Brown [Fri, 19 Jan 2007 02:02:59 +0000 (02:02 +0000)]
Split random number generation out into core/random.c, and create the
correct prototypes for srandom(), rand() and srand().

13 years agovsprintf.h is gPXE-specific; move it to include/gpxe
Michael Brown [Fri, 19 Jan 2007 01:17:23 +0000 (01:17 +0000)]
vsprintf.h is gPXE-specific; move it to include/gpxe

13 years agoUse stdio.h instead of vsprintf.h
Michael Brown [Fri, 19 Jan 2007 01:13:12 +0000 (01:13 +0000)]
Use stdio.h instead of vsprintf.h

13 years agoFinally move the prototypes for printf() and friends to stdio.h
Michael Brown [Fri, 19 Jan 2007 00:58:49 +0000 (00:58 +0000)]
Finally move the prototypes for printf() and friends to stdio.h

13 years ago4.3BSD says that bcopy and bzero are defined in strings.h, not string.h
Michael Brown [Fri, 19 Jan 2007 00:51:13 +0000 (00:51 +0000)]
4.3BSD says that bcopy and bzero are defined in strings.h, not string.h

13 years agoTypo
Michael Brown [Fri, 19 Jan 2007 00:48:13 +0000 (00:48 +0000)]
Typo

13 years agoAdd missing prerequisite include
Michael Brown [Fri, 19 Jan 2007 00:39:12 +0000 (00:39 +0000)]
Add missing prerequisite include

13 years agoA working name resolution framework
Michael Brown [Thu, 18 Jan 2007 22:38:13 +0000 (22:38 +0000)]
A working name resolution framework

13 years agoWhen an async operation dies, orphan its children.
Michael Brown [Thu, 18 Jan 2007 22:36:57 +0000 (22:36 +0000)]
When an async operation dies, orphan its children.

13 years agoHave DHCP set the nameserver, rather than DNS read the DHCP nameserver
Michael Brown [Thu, 18 Jan 2007 21:22:03 +0000 (21:22 +0000)]
Have DHCP set the nameserver, rather than DNS read the DHCP nameserver
value.

13 years agoUse total free memory as advertised window. This seems to be sufficient
Michael Brown [Thu, 18 Jan 2007 20:39:17 +0000 (20:39 +0000)]
Use total free memory as advertised window.  This seems to be sufficient
to avoid drops even on slow NICs.

13 years agoMove include/malloc.h to include/gpxe/malloc.h, since everything in there
Michael Brown [Thu, 18 Jan 2007 20:11:04 +0000 (20:11 +0000)]
Move include/malloc.h to include/gpxe/malloc.h, since everything in there
is now gPXE-specific.  (The standard malloc() et al have been in stdlib.h
for a while).

Add free memory counter.

13 years agoInclude stdlib.h rather than malloc.h
Michael Brown [Thu, 18 Jan 2007 20:06:03 +0000 (20:06 +0000)]
Include stdlib.h rather than malloc.h

13 years agoconsole.h is no longer needed for debugging
Michael Brown [Thu, 18 Jan 2007 19:13:25 +0000 (19:13 +0000)]
console.h is no longer needed for debugging

13 years agoAllow truly arbitrary debug levels to be specified via DEBUG=
Michael Brown [Thu, 18 Jan 2007 19:00:09 +0000 (19:00 +0000)]
Allow truly arbitrary debug levels to be specified via DEBUG=

13 years agoDeclaring the CPU architecture in the middle of an assembly file is
Michael Brown [Thu, 18 Jan 2007 18:53:32 +0000 (18:53 +0000)]
Declaring the CPU architecture in the middle of an assembly file is
somewhat redundant, and also causes gas to complain when we include
the profiling code (which uses an i586 instruction).

13 years agoAdd DBGLVL_PROFILE
Michael Brown [Thu, 18 Jan 2007 17:59:59 +0000 (17:59 +0000)]
Add DBGLVL_PROFILE

13 years agoRemove the one-packet-per-poll-cycle limit; it seems to no longer be
Michael Brown [Thu, 18 Jan 2007 16:50:35 +0000 (16:50 +0000)]
Remove the one-packet-per-poll-cycle limit; it seems to no longer be
needed now that performance is up.

13 years agoIncrease window size to 64kB. Line rate downloads on a 100Mbps link,
Michael Brown [Thu, 18 Jan 2007 16:39:55 +0000 (16:39 +0000)]
Increase window size to 64kB.  Line rate downloads on a 100Mbps link,
anyone?

13 years agoAccelerate memcpy() by around 32% on large, dword-aligned copies.
Michael Brown [Thu, 18 Jan 2007 15:18:02 +0000 (15:18 +0000)]
Accelerate memcpy() by around 32% on large, dword-aligned copies.

13 years agoAllow buffers to be pre-expanded on demand.
Michael Brown [Thu, 18 Jan 2007 15:13:41 +0000 (15:13 +0000)]
Allow buffers to be pre-expanded on demand.

13 years agoPresize the download buffer when we see the Content-Length header;
Michael Brown [Thu, 18 Jan 2007 13:26:57 +0000 (13:26 +0000)]
Presize the download buffer when we see the Content-Length header;
this saves around 70us per received packet (which is around 50% of the
overall packet processing time).