Michael Brown
a27defa483
Add flag definitions.
18 years ago
Michael Brown
d2c22ec9bb
Add INT 13 emulation layer (which provides an interface to gPXE block
devices).
18 years ago
Michael Brown
1ad72e0e79
Add 64-bit byte-swapping operations.
18 years ago
Michael Brown
1838b58c3f
Add drivers/block and arch/i386/interface/pcbios
18 years ago
Michael Brown
568cad0ddc
(Redoing check-in lost by SourceForge's failure.)
18 years ago
Michael Brown
847f38f4ac
(Redoing check-in lost by SourceForge's failure.)
Add method for hooking real-mode interrupt vectors.
18 years ago
Michael Brown
f7b963da51
(Redoing check-in lost by SourceForge's failure.)
Use .text16.data section with "aw" attributes, to avoid section type
conflicts when placing both code and data into .text16.
Add __from_{text16,data16}.
18 years ago
Michael Brown
97d265f8dc
(Redoing check-in lost by SourceForge's failure.)
Avoid optimisation errors under -fstrict-aliasing.
18 years ago
Michael Brown
fdb983d473
Preserve the whole of %esp across prot_call(). We have to split this
between the low half stored in the static variable rm_sp, and the high
half stored on the prot_call() stack, because:
Just using the stack would screw up when a prot_call()ed routine
executes a real_call(); it would have no way to find the current top of
the RM stack.
Extending rm_sp to rm_esp would not be safe, because the guarantee that
rm_sp must return to the correct value by the time an external
real-mode call returns applies only to %sp, not to %esp.
18 years ago
Michael Brown
f8e087767b
Allow access to variables in .text16 as well as .data16. Chained
interrupt vectors, for example, will be easiest to handle if placed in
.text16.
18 years ago
Michael Brown
c10d1aa9d7
Preserve GDT across prot_call().
18 years ago
Michael Brown
dcc1b0054e
This line should not have been checked in
18 years ago
Michael Brown
832807726a
Add infrastructure to support access to .data16 (and .text16) variables
from protected-mode code.
Set up %ds to point to .data16 in prot_to_real, so that code specified
via REAL_EXEC() and friends can access variables in .data16.
Move most real-mode librm variables from .text16 to .data16.
18 years ago
Michael Brown
f4429533a6
Added methods for efficiently declaring and accessing variables in
.data16. librm will need to supply "char *data16", i.e. the virtual
address of the start of .data16.
18 years ago
Michael Brown
f8f75cef5b
BSS is now zeroed by libprefix (along with the otherwise non-zeroable
portions such as the stack) during the installation process.
init_fns() are called from main(). We need to think about initial
control flow some more.
18 years ago
Michael Brown
cc23057b59
Typo
18 years ago
Michael Brown
10c28a51bd
Create two easy-to-use entry points in libprefix: install and
install_prealloc. I *think* these will suffice for all the 16-bit
prefixes.
18 years ago
Michael Brown
9e1dd6402d
<name>_size variable is no longer needed, since we don't copy the code.
However, it's worth adding a .size directive so that objdump reports the
correct sizes for the code fragments.
18 years ago
Michael Brown
9fcded3d23
Towards a(nother) new real-mode infrastructure, in which we take
advantage of the fact that we have to have a permanently-resident block
in base memory.
18 years ago
Michael Brown
8f62b39c03
Move stack out to separate object, so that having a stack doesn't drag in
setup.S.
18 years ago
Michael Brown
5463169c1a
Verified as working
18 years ago
Michael Brown
d081d65d48
This should be much more elegant: we use flat real mode for the
highmem data, so decompress16 will be able to unpack blocks bigger
than 64kB.
18 years ago
Michael Brown
cc8821a443
Checking in because I don't want to lose this rather neat code for
running the decompresser in 16:16 protected mode using the real-mode
stack. However, there's an even simpler way to do it...
18 years ago
Michael Brown
9c9208a132
Put the TCP connection periodic processing in tcp.c, where it belongs.
18 years ago
Michael Brown
352bf1bda2
Move init.h to gpxe/init.h.
18 years ago
Michael Brown
d8e99bf28f
Gave up on adding POSIX errno's as required, and just added (almost) all
of them in one go.
EBADIMG has been replaced by ENOEXEC, and EIMGRET by ECANCELED.
18 years ago
Michael Brown
7a82c3eca3
Added missing ssize_t
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
4c4e4de18f
(librm_base-1b) is already an offset; no need to apply OFFSET().
Doing so, in fact, seems to expose an assembler bug; (a-b-0) is
apparently not the same as (a-b). Go figure.
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
510ccb2900
Added __constant_memcpy() based on version in Linux's string.h.
Added memswap().
18 years ago
Michael Brown
b2909e547d
They can come back when they have someone to support them.
18 years ago
Michael Brown
cdf1511d3e
Prefix semantics have changed
18 years ago
Michael Brown
5d28bae0f1
Fix up building with gcc 4.0.1 / gas 2.16.91
18 years ago
Michael Brown
0e494614b5
Some versions of doxygen seem to object to "@ret None" or similar.
19 years ago
Michael Brown
7b423c0988
Fixes for gcc >= 3.2 from Georg Baum
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
079b5d5527
Moved pxe_loader.c to pxe_image.c to avoid name clash
19 years ago
Michael Brown
8becf0f65f
Rearranging PXE header files
19 years ago
Michael Brown
d5789ff4a2
Doxygenation
19 years ago
Michael Brown
d3dec7c331
Update to cope with changes in registers.h
19 years ago
Michael Brown
5231b858c9
Don't use anonymous entries in a struct; it seems to aggravate gcc 3.4.3.
19 years ago
Michael Brown
d0c9183903
Doxygenation
19 years ago
Michael Brown
dd475a9b8c
Add a const to avoid a warning
19 years ago
Michael Brown
783e9ca396
Added doxygen comments and errno values.
19 years ago
Michael Brown
fac5f28d7e
There is no arch/i386/firmware/linuxbios directory
19 years ago
Michael Brown
205a7ad5e0
Moved NBI support to nbi.c, modified to work with new load mechanism
19 years ago
Michael Brown
9c832a6a69
First version
19 years ago
Michael Brown
9a413cfea1
Moved os_regs into start32.S
19 years ago
Michael Brown
a76b9c3f19
Added debug messages
19 years ago