Michael Brown
295e11b2b0
Add INT 13,41 (extensions installation check). LILO's MBR now uses
linear calls to load the MS-DOS boot sector in my test setup.
18 years ago
Michael Brown
29fb77b0a4
Fix a couple of minor typos.
18 years ago
Michael Brown
6e42cb95bd
Also capture INT 19 as a failure path, to allow for boot sectors that
don't conform to BBS (e.g. the one created by mkdosfs).
18 years ago
Michael Brown
4435667a00
Add int13_boot(), to allow booting from INT 13 emulated drives.
18 years ago
Michael Brown
b4f941b257
Specify attributes on .text16.
18 years ago
Michael Brown
2421723a15
Rewrote printf and friends to better support standard C semantics.
18 years ago
Michael Brown
5080668704
Provide access to rm_cs and rm_ds from protected-mode code.
18 years ago
Michael Brown
dc8d429ec6
Provide a global counter for the number of interrupts hooked.
18 years ago
Michael Brown
63499e9cfd
Allow re-entrancy and provide a global counter of the number of
interrupts hooked.
18 years ago
Michael Brown
d822b3d4cd
Define BIOS data segment in bios.h
18 years ago
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
cdf1511d3e
Prefix semantics have changed
18 years ago
Michael Brown
5d28bae0f1
Fix up building with gcc 4.0.1 / gas 2.16.91
19 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