Michael Brown
8df7e74990
Fix up prototype of strtoul() to match POSIX.
18 years ago
Michael Brown
352bf1bda2
Move init.h to gpxe/init.h.
18 years ago
Michael Brown
23c494d14e
Added basic code for implementing co-operative multitasking.
Yes, you really can do it in 65 bytes.
18 years ago
Michael Brown
51feeab445
Add an explicit failure debug message
18 years ago
Michael Brown
cfae86f6c8
Glenn managed to shrink .text by 5 more bytes.
18 years ago
Michael Brown
face774c4c
Fixed erroneous comparison
18 years ago
Michael Brown
95f8a42930
Removed incorrect comment; malloc() is inefficient only when the
alignment and size are both powers of two, and there's no way to
specify an alignment through the malloc() interface anyway.
18 years ago
Michael Brown
4e92f29c9e
Now passes trivial tests. free_memblock() needs neatening up.
18 years ago
Michael Brown
b601a7d355
Updated memory allocator to improve support for unaligned or partially
aligned blocks.
Moved header to include/malloc.h, since we now also provide the
POSIX-like malloc()/free() pair.
Not yet tested.
18 years ago
Michael Brown
832e86246b
gcc is rather over-aggressive about optimising out static data structures
even when __atribute__ (( unused )) is correctly set...
18 years ago
Michael Brown
824d6ffa7f
Header rearrangement.
I want to get to the point where any header in include/ reflects a
standard user-level header (e.g. a POSIX header), while everything that's
specific to gPXE lives in include/gpxe/. Headers that reflect a Linux
header (e.g. if_ether.h) should also be in include/gpxe/, with the same
name as the Linux header and, preferably, the same names used for the
definitions.
18 years ago
Michael Brown
b6b6a0b5fe
First draft of a dynamic memory allocator
18 years ago
Michael Brown
d24042f0bb
Update now that if_ether.h has moved.
18 years ago
Michael Brown
49f933fbc3
Moved if_ether.h and if_arp.h to include/gpxe, for consistency with Linux
kernel.
Removed obsolete struct arprequest from if_arp.h and put it in nic.c so
that nic.c will still compile. ARP will very shortly be handled by
net/arp.c instead.
18 years ago
Michael Brown
af23ff8a24
Assertions are now handled via the POSIX-like <assert.h>.
18 years ago
Michael Brown
df9cbc23cc
Added documentation and ASSERT() statements.
19 years ago
Michael Brown
33dbdda28e
Allow data blocks to be less than sizeof ( struct buffer_free_block ) in
size. (The restriction on the size of free blocks remains.)
19 years ago
Michael Brown
cbed5ed9ad
Always include code for sending multicast packets.
19 years ago
Michael Brown
be7897523d
IGMP protocol now uses the generic background protocol mechanism.
19 years ago
Michael Brown
85a380530d
Add generic mechanism for background protocols (e.g. ARP, IGMP)
19 years ago
Geert Stappers
5265975334
patch of Helge Wagner
19 years ago
Michael Brown
0e494614b5
Some versions of doxygen seem to object to "@ret None" or similar.
19 years ago
Michael Brown
809933d9f7
Split PXE code into preboot, udp, tftp, undi and loader units.
PXE code now compiles without errors (though it won't actually work).
19 years ago
Michael Brown
8fcb6448bd
Moved pxe_errors.c to pxe/interface/
19 years ago
Michael Brown
6bcd74b65c
Moved pxe_export.c to pxe.c, since the old pxe.c no longer exists.
19 years ago
Michael Brown
a96759f9c8
Use "#var" rather than "@c var" for doxygen.
19 years ago
Michael Brown
bf32da87f0
Doxygenation
19 years ago
Michael Brown
8bc4551f5e
API docs to .h
19 years ago
Michael Brown
2ddbac101e
Move API docs to buffer.h, implementation to buffer.c.
19 years ago
Michael Brown
d0c9183903
Doxygenation
19 years ago
Michael Brown
eff1cd867b
errno.h now required in order to compile.
19 years ago
Michael Brown
e911a74724
More documentation
19 years ago
Michael Brown
a2915ad06d
Added preliminary doxygen documentation
19 years ago
Michael Brown
0e921cdd9e
More doxygen docs
19 years ago
Michael Brown
d04b607eb9
Add doxygen documentation
19 years ago
Michael Brown
127362581f
Document %m
19 years ago
Michael Brown
307cf36fca
Linker symbols no longer defined in etherboot.h
Use %m to print error
19 years ago
Michael Brown
ab07740755
First version
19 years ago
Michael Brown
ff9104e029
Added errno, strerror and the "%m" printf metacharacter. These will allow
us to return proper PXE status codes, while simultaneously allowing for
more consistent error reporting (complete with verbose error messages as a
build-time option).
19 years ago
Michael Brown
40c7b127aa
Added const to fill_buffer
19 years ago
Michael Brown
022661283a
Load buffer is now handled by the autoload() function.
19 years ago
Michael Brown
510de6cb8c
Restructured to allow per-object image formats
19 years ago
Michael Brown
0571dcdb05
Added print_images() and autoload().
19 years ago
Michael Brown
9968c9513e
Moved find_segment into elf_loader.c
19 years ago
Michael Brown
3ce6504f14
Use shared symbols for heap_ptr and heap_end
19 years ago
Michael Brown
6e8f29d3cb
Image formats moved into the new config system
19 years ago
Michael Brown
5c8ea0b93a
Add realloc, since the load buffer code requires it.
19 years ago
Michael Brown
59a1662978
Added debugging
19 years ago
Michael Brown
42250e9b1a
Tidied up init_heap()
19 years ago
Michael Brown
f0d048bf91
Added ASSERT() macro
19 years ago