people/lynusvaz/gpxe.git
15 years agoImport from Etherboot 5.4
Michael Brown [Tue, 17 May 2005 16:44:57 +0000 (16:44 +0000)]
Import from Etherboot 5.4

15 years agoInitial revision
Michael Brown [Tue, 17 May 2005 16:44:57 +0000 (16:44 +0000)]
Initial revision

15 years agoQuickly hacked to use a buffer rather than a processor.
Michael Brown [Tue, 17 May 2005 14:49:46 +0000 (14:49 +0000)]
Quickly hacked to use a buffer rather than a processor.
These don't yet take advantage of the buffer functionality.

15 years agoUpdate to use buffer rather than processor
Michael Brown [Tue, 17 May 2005 14:35:20 +0000 (14:35 +0000)]
Update to use buffer rather than processor

15 years agoAdded const to fill_buffer
Michael Brown [Tue, 17 May 2005 14:34:46 +0000 (14:34 +0000)]
Added const to fill_buffer

15 years agoUpdated to use buffer rather than processor
Michael Brown [Tue, 17 May 2005 14:26:14 +0000 (14:26 +0000)]
Updated to use buffer rather than processor

15 years agoLoad buffer is now handled by the autoload() function.
Michael Brown [Tue, 17 May 2005 13:44:08 +0000 (13:44 +0000)]
Load buffer is now handled by the autoload() function.

15 years agoMoved NBI support to nbi.c, modified to work with new load mechanism
Michael Brown [Tue, 17 May 2005 13:42:20 +0000 (13:42 +0000)]
Moved NBI support to nbi.c, modified to work with new load mechanism

15 years agoFirst version
Michael Brown [Tue, 17 May 2005 13:41:00 +0000 (13:41 +0000)]
First version

15 years agoRestructured to allow per-object image formats
Michael Brown [Tue, 17 May 2005 13:40:31 +0000 (13:40 +0000)]
Restructured to allow per-object image formats

15 years agoHeap function prototypes moved to heap.h
Michael Brown [Tue, 17 May 2005 13:39:27 +0000 (13:39 +0000)]
Heap function prototypes moved to heap.h

15 years agoAdd twiddle() so that progress is visible.
Michael Brown [Tue, 17 May 2005 13:39:00 +0000 (13:39 +0000)]
Add twiddle() so that progress is visible.

15 years agoAdded print_images() and autoload().
Michael Brown [Tue, 17 May 2005 13:38:24 +0000 (13:38 +0000)]
Added print_images() and autoload().

15 years agoMoved find_segment into elf_loader.c
Michael Brown [Tue, 17 May 2005 13:37:29 +0000 (13:37 +0000)]
Moved find_segment into elf_loader.c

15 years agoMoved os_regs into start32.S
Michael Brown [Tue, 17 May 2005 13:37:01 +0000 (13:37 +0000)]
Moved os_regs into start32.S

15 years agoAdded debug messages
Michael Brown [Tue, 17 May 2005 13:36:12 +0000 (13:36 +0000)]
Added debug messages

15 years agoUse shared symbols for heap_ptr and heap_end
Michael Brown [Tue, 17 May 2005 13:35:43 +0000 (13:35 +0000)]
Use shared symbols for heap_ptr and heap_end

15 years agoAdded copy_phys_to_phys
Michael Brown [Tue, 17 May 2005 13:34:57 +0000 (13:34 +0000)]
Added copy_phys_to_phys

15 years agoAdded "image" directory
Michael Brown [Tue, 17 May 2005 13:34:25 +0000 (13:34 +0000)]
Added "image" directory

15 years agoImage formats moved into the new config system
Michael Brown [Tue, 17 May 2005 13:33:49 +0000 (13:33 +0000)]
Image formats moved into the new config system

15 years agoUse __unused instead of __used for static data structures.
Michael Brown [Tue, 17 May 2005 12:16:28 +0000 (12:16 +0000)]
Use __unused instead of __used for static data structures.
Remove compiler.h defines from osdep.h

15 years agoUse the heap functions to allocate a load buffer.
Michael Brown [Fri, 13 May 2005 13:30:51 +0000 (13:30 +0000)]
Use the heap functions to allocate a load buffer.

15 years agoFirst version
Michael Brown [Fri, 13 May 2005 13:29:15 +0000 (13:29 +0000)]
First version

15 years agoAdd realloc, since the load buffer code requires it.
Michael Brown [Fri, 13 May 2005 13:20:16 +0000 (13:20 +0000)]
Add realloc, since the load buffer code requires it.

15 years agoAdded debugging
Michael Brown [Fri, 13 May 2005 11:24:02 +0000 (11:24 +0000)]
Added debugging

15 years agoTidied up init_heap()
Michael Brown [Fri, 13 May 2005 11:16:14 +0000 (11:16 +0000)]
Tidied up init_heap()

15 years agoAdded ASSERT() macro
Michael Brown [Fri, 13 May 2005 10:18:21 +0000 (10:18 +0000)]
Added ASSERT() macro

15 years agoAdded old allot/forget calls for backwards compatibility.
Michael Brown [Thu, 12 May 2005 16:38:07 +0000 (16:38 +0000)]
Added old allot/forget calls for backwards compatibility.

15 years agoMerged the unaligned and aligned heap APIs and simplified the code.
Michael Brown [Thu, 12 May 2005 16:34:57 +0000 (16:34 +0000)]
Merged the unaligned and aligned heap APIs and simplified the code.

15 years agoUse the global load_buffer, and the boot_image function.
Michael Brown [Mon, 9 May 2005 18:10:04 +0000 (18:10 +0000)]
Use the global load_buffer, and the boot_image function.

15 years agoAdd INIT_LOADBUF
Michael Brown [Mon, 9 May 2005 18:04:20 +0000 (18:04 +0000)]
Add INIT_LOADBUF

15 years agoMake "struct buffer"s reusable between sessions.
Michael Brown [Mon, 9 May 2005 18:03:44 +0000 (18:03 +0000)]
Make "struct buffer"s reusable between sessions.

15 years agoInclude string.h, because we need to define copy_{to,from}_phys
Michael Brown [Mon, 9 May 2005 18:03:14 +0000 (18:03 +0000)]
Include string.h, because we need to define copy_{to,from}_phys

15 years agoFirst version
Michael Brown [Mon, 9 May 2005 18:02:22 +0000 (18:02 +0000)]
First version

15 years agoFirst versions
Michael Brown [Mon, 9 May 2005 18:01:50 +0000 (18:01 +0000)]
First versions

15 years agoProtocols now load data into a buffer; they don't execute it.
Michael Brown [Mon, 9 May 2005 14:27:29 +0000 (14:27 +0000)]
Protocols now load data into a buffer; they don't execute it.

15 years agooff_t should be signed.
Michael Brown [Mon, 9 May 2005 14:26:25 +0000 (14:26 +0000)]
off_t should be signed.

15 years agoReturn -1 to indicate buffer overflow. Allow buffer fill level to be read
Michael Brown [Mon, 9 May 2005 14:26:10 +0000 (14:26 +0000)]
Return -1 to indicate buffer overflow.  Allow buffer fill level to be read
easily from struct buffer.

15 years agoAdded debugging
Michael Brown [Mon, 9 May 2005 13:47:04 +0000 (13:47 +0000)]
Added debugging

15 years agoAdded explanatory comment.
Michael Brown [Mon, 9 May 2005 13:25:43 +0000 (13:25 +0000)]
Added explanatory comment.

15 years agoModified to use physical addresses, and to not assume that we can directly
Michael Brown [Mon, 9 May 2005 13:24:01 +0000 (13:24 +0000)]
Modified to use physical addresses, and to not assume that we can directly
refer to data outside of our data or stack segments.

15 years agoAdd off_t and physaddr_t, and the copy_{to,from}_phys helper routines.
Michael Brown [Mon, 9 May 2005 13:21:56 +0000 (13:21 +0000)]
Add off_t and physaddr_t, and the copy_{to,from}_phys helper routines.

15 years agoAdd memcpy
Michael Brown [Mon, 9 May 2005 12:48:00 +0000 (12:48 +0000)]
Add memcpy

15 years agoStart of an implementation using doubly-linked lists and virtual
Michael Brown [Mon, 9 May 2005 10:11:11 +0000 (10:11 +0000)]
Start of an implementation using doubly-linked lists and virtual
addresses.  This will have to be reworked to use physical addresses thanks
to the PXE spec.

15 years agoMake vga_font const to avoid warning about large symbol
Michael Brown [Tue, 3 May 2005 13:17:08 +0000 (13:17 +0000)]
Make vga_font const to avoid warning about large symbol

15 years agoMake PCI ID tables const so as not to trigger a warning about a large
Michael Brown [Tue, 3 May 2005 12:36:06 +0000 (12:36 +0000)]
Make PCI ID tables const so as not to trigger a warning about a large
symbol.

15 years agoAllow read-only symbols to be large
Michael Brown [Tue, 3 May 2005 12:34:52 +0000 (12:34 +0000)]
Allow read-only symbols to be large

15 years agoMove tulip_private structure into shared data.
Michael Brown [Tue, 3 May 2005 12:29:32 +0000 (12:29 +0000)]
Move tulip_private structure into shared data.

15 years agoReduce large symbol warning threshold, now that most of the really
Michael Brown [Tue, 3 May 2005 12:24:52 +0000 (12:24 +0000)]
Reduce large symbol warning threshold, now that most of the really
large symbols have been fixed.

15 years agoD'oh
Michael Brown [Tue, 3 May 2005 12:18:31 +0000 (12:18 +0000)]
D'oh

15 years agoUse __shared
Michael Brown [Tue, 3 May 2005 12:16:49 +0000 (12:16 +0000)]
Use __shared

15 years agoAdded example of how to use __shared.
Michael Brown [Tue, 3 May 2005 12:14:29 +0000 (12:14 +0000)]
Added example of how to use __shared.
Moved transmit before poll, since typically transmit will be implemented first.

15 years ago#if 0 out the whole file for now; it cannot be linked because the base
Michael Brown [Tue, 3 May 2005 11:56:33 +0000 (11:56 +0000)]
#if 0 out the whole file for now; it cannot be linked because the base
 memory interface has changed.

15 years agoRe-add the "etherboot.%" all-drivers image.
Michael Brown [Tue, 3 May 2005 11:51:19 +0000 (11:51 +0000)]
Re-add the "etherboot.%" all-drivers image.

15 years agoSymbol fixups
Michael Brown [Tue, 3 May 2005 11:29:33 +0000 (11:29 +0000)]
Symbol fixups

15 years agoArbitrary alignment is now available.
Michael Brown [Tue, 3 May 2005 09:56:57 +0000 (09:56 +0000)]
Arbitrary alignment is now available.
Use shared symbols.
Correct other symbol violations.

15 years agoRemoved spurious semicolon
Michael Brown [Tue, 3 May 2005 09:02:24 +0000 (09:02 +0000)]
Removed spurious semicolon

15 years agoUse shared symbols
Michael Brown [Mon, 2 May 2005 17:45:24 +0000 (17:45 +0000)]
Use shared symbols

15 years agoUse shared symbols to save space
Michael Brown [Mon, 2 May 2005 16:35:44 +0000 (16:35 +0000)]
Use shared symbols to save space

15 years agoMoved definition of __shared into compiler.h
Michael Brown [Mon, 2 May 2005 16:21:52 +0000 (16:21 +0000)]
Moved definition of __shared into compiler.h

15 years agoCorrect symbol violations reported by "make symcheck"
Michael Brown [Mon, 2 May 2005 15:22:32 +0000 (15:22 +0000)]
Correct symbol violations reported by "make symcheck"

15 years agoReport on misuses of shared symbols, and excessively large static symbols.
Michael Brown [Mon, 2 May 2005 15:21:12 +0000 (15:21 +0000)]
Report on misuses of shared symbols, and excessively large static symbols.

15 years agoFirst version
Michael Brown [Mon, 2 May 2005 14:43:15 +0000 (14:43 +0000)]
First version

15 years agoTweaked to read more information (including symbol size) from blib.a
Michael Brown [Mon, 2 May 2005 13:49:54 +0000 (13:49 +0000)]
Tweaked to read more information (including symbol size) from blib.a

15 years agoAdd DOWNLOAD_PROTO_XXX options.
Michael Brown [Mon, 2 May 2005 12:45:23 +0000 (12:45 +0000)]
Add DOWNLOAD_PROTO_XXX options.

15 years agoUpdated to use new URL parser and new protocol API.
Michael Brown [Mon, 2 May 2005 12:10:14 +0000 (12:10 +0000)]
Updated to use new URL parser and new protocol API.

Sort of works; the HTTP stuff is fine but the TCP code seems to be
broken; it doesn't ACK the packets and just hands us the retransmitted
packets instead.

15 years agoSplit TCP code out into proto/tcp.c
Michael Brown [Mon, 2 May 2005 12:07:47 +0000 (12:07 +0000)]
Split TCP code out into proto/tcp.c

15 years agoMoved DOWNLOAD_PROTO_XXX options to config.h
Michael Brown [Mon, 2 May 2005 11:13:47 +0000 (11:13 +0000)]
Moved DOWNLOAD_PROTO_XXX options to config.h

15 years agoMore URL parsing moved into url.c
Michael Brown [Sun, 1 May 2005 23:58:45 +0000 (23:58 +0000)]
More URL parsing moved into url.c

15 years agohttp.h obsoleted (no content)
Michael Brown [Sun, 1 May 2005 23:58:20 +0000 (23:58 +0000)]
http.h obsoleted (no content)

15 years agoProtocol structure can now specify the default port.
Michael Brown [Sun, 1 May 2005 23:57:09 +0000 (23:57 +0000)]
Protocol structure can now specify the default port.

15 years agoMade parse_url do more of the processing, to avoid duplicating parts of
Michael Brown [Sun, 1 May 2005 19:10:04 +0000 (19:10 +0000)]
Made parse_url do more of the processing, to avoid duplicating parts of
nic.c in http.c

15 years agoProtocol names are x-slam and x-tftm
Michael Brown [Sun, 1 May 2005 15:50:08 +0000 (15:50 +0000)]
Protocol names are x-slam and x-tftm

15 years agoUpdated to protocol API
Michael Brown [Sun, 1 May 2005 15:36:39 +0000 (15:36 +0000)]
Updated to protocol API

15 years agoUpdated to protocol API
Michael Brown [Sun, 1 May 2005 15:26:44 +0000 (15:26 +0000)]
Updated to protocol API

15 years agoRemoved obsolete prototypes.
Michael Brown [Sun, 1 May 2005 15:14:22 +0000 (15:14 +0000)]
Removed obsolete prototypes.

15 years agoUpdated to new protocol API, made to compile.
Michael Brown [Sun, 1 May 2005 15:08:39 +0000 (15:08 +0000)]
Updated to new protocol API, made to compile.

15 years agoumountall() handled by nfs.c's reset function
Michael Brown [Sun, 1 May 2005 15:08:19 +0000 (15:08 +0000)]
umountall() handled by nfs.c's reset function

15 years agonfs prototypes no longer required.
Michael Brown [Sun, 1 May 2005 15:07:55 +0000 (15:07 +0000)]
nfs prototypes no longer required.

15 years agoAdd INIT_RPC
Michael Brown [Sun, 1 May 2005 15:07:35 +0000 (15:07 +0000)]
Add INIT_RPC

15 years agoMoved protocols to proto/
Michael Brown [Sun, 1 May 2005 14:04:11 +0000 (14:04 +0000)]
Moved protocols to proto/

15 years agoAbort immediately if no nameserver is present.
Michael Brown [Sun, 1 May 2005 13:59:34 +0000 (13:59 +0000)]
Abort immediately if no nameserver is present.

15 years agoAdd debugging for CNAME records.
Michael Brown [Sun, 1 May 2005 11:30:26 +0000 (11:30 +0000)]
Add debugging for CNAME records.
Allow routines to be called by nmb.c

15 years agoNMB packets are so similar to DNS packets; we may as well add NMB as a
Michael Brown [Sun, 1 May 2005 11:10:17 +0000 (11:10 +0000)]
NMB packets are so similar to DNS packets; we may as well add NMB as a
name resolution method.

15 years agoAdd NMB_RESOLVER
Michael Brown [Sun, 1 May 2005 10:58:49 +0000 (10:58 +0000)]
Add NMB_RESOLVER

15 years agoDo not include etherboot.h
Michael Brown [Sun, 1 May 2005 10:40:12 +0000 (10:40 +0000)]
Do not include etherboot.h

15 years agoAlways request DNS server. DHCP handling will be generalised in future.
Michael Brown [Sat, 30 Apr 2005 19:39:50 +0000 (19:39 +0000)]
Always request DNS server.  DHCP handling will be generalised in future.

15 years agoStraightforward A record resolution now known working.
Michael Brown [Sat, 30 Apr 2005 19:38:51 +0000 (19:38 +0000)]
Straightforward A record resolution now known working.

15 years agottl is a uint32_t
Michael Brown [Sat, 30 Apr 2005 19:38:31 +0000 (19:38 +0000)]
ttl is a uint32_t

15 years agoDNS resolver rewritten, moved to proto/dns.c
Michael Brown [Sat, 30 Apr 2005 14:50:33 +0000 (14:50 +0000)]
DNS resolver rewritten, moved to proto/dns.c

15 years ago"dns_resolver" changed to "dns"
Michael Brown [Sat, 30 Apr 2005 14:49:41 +0000 (14:49 +0000)]
"dns_resolver" changed to "dns"

15 years agotftp functions moved to proto/tftp.c
Michael Brown [Sat, 30 Apr 2005 14:46:49 +0000 (14:46 +0000)]
tftp functions moved to proto/tftp.c

15 years agotftp moved to separate file.
Michael Brown [Sat, 30 Apr 2005 14:46:18 +0000 (14:46 +0000)]
tftp moved to separate file.

15 years agoProtocols get passed a pointer to the filename portion as well as just the
Michael Brown [Sat, 30 Apr 2005 14:45:51 +0000 (14:45 +0000)]
Protocols get passed a pointer to the filename portion as well as just the
URL.

15 years agotftp prototypes moved to tftp.h
Michael Brown [Sat, 30 Apr 2005 14:45:33 +0000 (14:45 +0000)]
tftp prototypes moved to tftp.h

15 years agoAdded "proto" directory
Michael Brown [Sat, 30 Apr 2005 14:45:09 +0000 (14:45 +0000)]
Added "proto" directory

15 years agoAdded debugging.
Michael Brown [Sat, 30 Apr 2005 14:41:37 +0000 (14:41 +0000)]
Added debugging.

15 years agoAdded DNS resolver configuration option.
Michael Brown [Sat, 30 Apr 2005 14:39:21 +0000 (14:39 +0000)]
Added DNS resolver configuration option.

15 years agoTFTP API changed.
Michael Brown [Sat, 30 Apr 2005 14:27:17 +0000 (14:27 +0000)]
TFTP API changed.

15 years agoloadkernel renamed to download_url, substantially restructured, and moved
Michael Brown [Sat, 30 Apr 2005 13:52:27 +0000 (13:52 +0000)]
loadkernel renamed to download_url, substantially restructured, and moved
to nic.c