Michael Brown
7bc03d37a2
Select a PXE network device before starting PXE NBP.
Move pxe_boot() code to pxe_image.c
vor 17 Jahren
Michael Brown
55e6d7b70c
Use debug autocolourisation.
Shut down before jumping to the multiboot image.
vor 17 Jahren
Michael Brown
dca369ddc3
Call hide_etherboot() from startup(), rather than requiring the prefix to
do it.
vor 17 Jahren
Michael Brown
ece4ff929e
Use _text, rather than assuming _text==0.
vor 17 Jahren
Michael Brown
f547f148d3
Use {get,set}_fbms() so that allocated base memory is correctly hidden.
vor 17 Jahren
Michael Brown
0b0e34e667
Provide {get,set}_fbms() in basemem.h.
set_fbms() will also update the E820 hidden region.
vor 17 Jahren
Michael Brown
aaed3d50a8
Some operating systems get a nasty shock if a region of the E820 map seems
to start on a non-page boundary. Make life safer by rounding out our
edited regions.
vor 17 Jahren
Michael Brown
d0f4e9a54b
Add some trace messages for important events
vor 17 Jahren
Michael Brown
f11900a9c6
I prefer IMAGE_XXX to XXX_IMAGE.
Add IMAGE_PXE to use the new image format framework. "kernel pxelinux.0"
now works.
vor 17 Jahren
Michael Brown
bd863e4112
Add header for pxe_boot()
vor 17 Jahren
Michael Brown
4b77061881
Pick up the return status code from the correct place now that we
don't overwrite the parameter block until *after* the debug code.
vor 17 Jahren
Michael Brown
5817c9f114
When an UNDI API call fails, print everything there is to know about it.
vor 17 Jahren
Michael Brown
6a3c76c8e0
Always send EOI. We can't feasibly share interrupts (since we have no
clue what the "previous" interrupt handler will do, which could range
from "just an iret" to "disable the interrupt"), and that means that
we have to take responsibility for ACKing all interrupts. Joy.
vor 17 Jahren
Michael Brown
86171c53f4
Damn Broadcom and their damned incorrect assumptions about x86 memory
allocation.
vor 17 Jahren
Michael Brown
bcd6ca3291
Place multiboot tables in base memory; at least some OSes won't see it
if we don't.
vor 17 Jahren
Michael Brown
0f29e0e46e
Ensure multiboot modules are in ascending order of memory start
address, to work around OS bugs.
vor 17 Jahren
Michael Brown
53e948bba8
Fix the memory map.
vor 17 Jahren
Michael Brown
6fdc6c81a6
Force probing of multiboot before ELF.
vor 17 Jahren
Michael Brown
9debfed07a
Place command-line inline, to save on memory allocation hassles.
vor 17 Jahren
Michael Brown
77b7640af4
Fix the only bug (which was to use DBGC() in place of DBG()!) and add 4kB
alignment.
vor 17 Jahren
Michael Brown
45ec9c907e
First version of an external memory allocator (not tested)
vor 17 Jahren
Michael Brown
1d313234b3
Rename copy_user() to memcpy_user(). Add memmove_user() and
userptr_add().
vor 17 Jahren
Michael Brown
859da6bd32
Allow external code to update hidden memory regions.
vor 17 Jahren
Michael Brown
687c1e3227
Nothing (not even hidemem.c) uses this file!
vor 17 Jahren
Michael Brown
39a8ed827c
Long since obsoleted by arch/i386/scripts/i386.lds
vor 17 Jahren
Michael Brown
2e088d9afc
Obsoleted by arch/i386/interface/pxe/pxe_call.c
vor 17 Jahren
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
vor 17 Jahren
Michael Brown
e4c6418ac0
We may be required to page-align modules, so let's make sure we catch
it if we don't.
vor 17 Jahren
Michael Brown
f59ad50504
Provide registration mechanism for loaded images, so that we can e.g.
refer to them by name from the command line, or build them into a
multiboot module list.
Use setting image->type to disambiguate between "not my image" and "bad
image"; this avoids relying on specific values of the error code.
vor 17 Jahren
Michael Brown
f31d91bce5
Populate multiboot information structure before calling OS.
vor 17 Jahren
Michael Brown
ddbc60b5ae
Whoever put together the grub multiboot.h header is insane.
vor 17 Jahren
Michael Brown
200d92c76d
Avoid namespace clashes
vor 17 Jahren
Michael Brown
bcc98c78b8
Added fields present in the documentation but not in the header file.
vor 17 Jahren
Michael Brown
dc51af59a4
Capable of starting a multiboot kernel (albeit without the multiboot
information table yet).
vor 17 Jahren
Michael Brown
9196e9069c
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
vor 17 Jahren
Michael Brown
d488a172eb
Capable of loading a multiboot image into memory
vor 17 Jahren
Michael Brown
143e3b84a4
Downloaded from current grub CVS.
vor 17 Jahren
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
vor 17 Jahren
Michael Brown
7ad1c2eaa8
Removed the Etherboot-specific ELF-image code and replaced it with a
generic ELF loader, to be used by the multiboot code.
vor 17 Jahren
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
vor 17 Jahren
Michael Brown
ceca6b185c
Added user_to_phys() and memset_user().
vor 17 Jahren
Michael Brown
c980cdd0aa
Move memmap.h out of arch/i386; it no longer contains anything
architecture-dependent and is needed by the ELF code.
vor 17 Jahren
Michael Brown
c6a4055fae
Add phys_to_user() and copy_user().
vor 17 Jahren
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
vor 17 Jahren
Michael Brown
fdc97499bf
Add device description fields to struct device.
vor 17 Jahren
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
vor 17 Jahren
Michael Brown
dad5274522
Add "name" field to struct device to allow human-readable hardware device
names.
Add "dev" pointer in struct net_device to tie network interfaces back to a
hardware device.
Force natural alignment of data types in __table() macros. This seems to
prevent gcc from taking the unilateral decision to occasionally increase
their alignment (which screws up the table packing).
vor 17 Jahren
Michael Brown
c65fae2475
Add RX quotas to the net device poll() method. This avoids the problem
of alloc_pkb() exhaustion when e.g. an iSCSI-booted DOS session is left
idle for a long time at the C:\ prompt and builds up a huge packet
backlog.
vor 17 Jahren
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
vor 17 Jahren
Michael Brown
b7fcfe8ece
Added net device TX queue; this will be needed to support the PXE UNDI API
(which will need us to wait for TX completions).
Added debug autocolourisation to netdevice.c
vor 17 Jahren