Michael Brown
7bc03d37a2
Select a PXE network device before starting PXE NBP.
Move pxe_boot() code to pxe_image.c
17 anos atrás
Michael Brown
55e6d7b70c
Use debug autocolourisation.
Shut down before jumping to the multiboot image.
17 anos atrás
Michael Brown
dca369ddc3
Call hide_etherboot() from startup(), rather than requiring the prefix to
do it.
17 anos atrás
Michael Brown
ece4ff929e
Use _text, rather than assuming _text==0.
17 anos atrás
Michael Brown
f547f148d3
Use {get,set}_fbms() so that allocated base memory is correctly hidden.
17 anos atrás
Michael Brown
0b0e34e667
Provide {get,set}_fbms() in basemem.h.
set_fbms() will also update the E820 hidden region.
17 anos atrás
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.
17 anos atrás
Michael Brown
d0f4e9a54b
Add some trace messages for important events
17 anos atrás
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.
17 anos atrás
Michael Brown
bd863e4112
Add header for pxe_boot()
17 anos atrás
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.
17 anos atrás
Michael Brown
5817c9f114
When an UNDI API call fails, print everything there is to know about it.
17 anos atrás
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.
17 anos atrás
Michael Brown
86171c53f4
Damn Broadcom and their damned incorrect assumptions about x86 memory
allocation.
17 anos atrás
Michael Brown
bcd6ca3291
Place multiboot tables in base memory; at least some OSes won't see it
if we don't.
17 anos atrás
Michael Brown
0f29e0e46e
Ensure multiboot modules are in ascending order of memory start
address, to work around OS bugs.
17 anos atrás
Michael Brown
53e948bba8
Fix the memory map.
17 anos atrás
Michael Brown
6fdc6c81a6
Force probing of multiboot before ELF.
17 anos atrás
Michael Brown
9debfed07a
Place command-line inline, to save on memory allocation hassles.
17 anos atrás
Michael Brown
77b7640af4
Fix the only bug (which was to use DBGC() in place of DBG()!) and add 4kB
alignment.
17 anos atrás
Michael Brown
45ec9c907e
First version of an external memory allocator (not tested)
17 anos atrás
Michael Brown
1d313234b3
Rename copy_user() to memcpy_user(). Add memmove_user() and
userptr_add().
17 anos atrás
Michael Brown
859da6bd32
Allow external code to update hidden memory regions.
17 anos atrás
Michael Brown
687c1e3227
Nothing (not even hidemem.c) uses this file!
17 anos atrás
Michael Brown
39a8ed827c
Long since obsoleted by arch/i386/scripts/i386.lds
17 anos atrás
Michael Brown
2e088d9afc
Obsoleted by arch/i386/interface/pxe/pxe_call.c
17 anos atrás
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
17 anos atrás
Michael Brown
e4c6418ac0
We may be required to page-align modules, so let's make sure we catch
it if we don't.
17 anos atrás
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.
17 anos atrás
Michael Brown
f31d91bce5
Populate multiboot information structure before calling OS.
17 anos atrás
Michael Brown
ddbc60b5ae
Whoever put together the grub multiboot.h header is insane.
17 anos atrás
Michael Brown
200d92c76d
Avoid namespace clashes
17 anos atrás
Michael Brown
bcc98c78b8
Added fields present in the documentation but not in the header file.
17 anos atrás
Michael Brown
dc51af59a4
Capable of starting a multiboot kernel (albeit without the multiboot
information table yet).
17 anos atrás
Michael Brown
9196e9069c
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
17 anos atrás
Michael Brown
d488a172eb
Capable of loading a multiboot image into memory
17 anos atrás
Michael Brown
143e3b84a4
Downloaded from current grub CVS.
17 anos atrás
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
17 anos atrás
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.
17 anos atrás
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
17 anos atrás
Michael Brown
ceca6b185c
Added user_to_phys() and memset_user().
17 anos atrás
Michael Brown
c980cdd0aa
Move memmap.h out of arch/i386; it no longer contains anything
architecture-dependent and is needed by the ELF code.
17 anos atrás
Michael Brown
c6a4055fae
Add phys_to_user() and copy_user().
17 anos atrás
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
17 anos atrás
Michael Brown
fdc97499bf
Add device description fields to struct device.
17 anos atrás
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
17 anos atrás
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).
17 anos atrás
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.
17 anos atrás
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
17 anos atrás
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
17 anos atrás