Michael Brown
6fdc6c81a6
Force probing of multiboot before ELF.
18 years ago
Michael Brown
9debfed07a
Place command-line inline, to save on memory allocation hassles.
18 years ago
Michael Brown
77b7640af4
Fix the only bug (which was to use DBGC() in place of DBG()!) and add 4kB
alignment.
18 years ago
Michael Brown
45ec9c907e
First version of an external memory allocator (not tested)
18 years ago
Michael Brown
1d313234b3
Rename copy_user() to memcpy_user(). Add memmove_user() and
userptr_add().
18 years ago
Michael Brown
859da6bd32
Allow external code to update hidden memory regions.
18 years ago
Michael Brown
687c1e3227
Nothing (not even hidemem.c) uses this file!
18 years ago
Michael Brown
39a8ed827c
Long since obsoleted by arch/i386/scripts/i386.lds
18 years ago
Michael Brown
2e088d9afc
Obsoleted by arch/i386/interface/pxe/pxe_call.c
18 years ago
Michael Brown
f81bf3bc52
We *do* have a __data16_array after all!
18 years ago
Michael Brown
e4c6418ac0
We may be required to page-align modules, so let's make sure we catch
it if we don't.
18 years ago
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.
18 years ago
Michael Brown
f31d91bce5
Populate multiboot information structure before calling OS.
18 years ago
Michael Brown
ddbc60b5ae
Whoever put together the grub multiboot.h header is insane.
18 years ago
Michael Brown
200d92c76d
Avoid namespace clashes
18 years ago
Michael Brown
bcc98c78b8
Added fields present in the documentation but not in the header file.
18 years ago
Michael Brown
dc51af59a4
Capable of starting a multiboot kernel (albeit without the multiboot
information table yet).
18 years ago
Michael Brown
9196e9069c
Add PHYS_CODE, for use as in __asm__ ( PHYS_CODE ( ... ) ), comparable
to the REAL_CODE interface.
18 years ago
Michael Brown
d488a172eb
Capable of loading a multiboot image into memory
18 years ago
Michael Brown
143e3b84a4
Downloaded from current grub CVS.
18 years ago
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
18 years ago
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.
18 years ago
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
18 years ago
Michael Brown
ceca6b185c
Added user_to_phys() and memset_user().
18 years ago
Michael Brown
c980cdd0aa
Move memmap.h out of arch/i386; it no longer contains anything
architecture-dependent and is needed by the ELF code.
18 years ago
Michael Brown
c6a4055fae
Add phys_to_user() and copy_user().
18 years ago
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
18 years ago
Michael Brown
fdc97499bf
Add device description fields to struct device.
18 years ago
Michael Brown
489a4004d7
Give UNDI device a more meaningful name.
18 years ago
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).
18 years ago
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.
18 years ago
Michael Brown
18e5353bed
Rename pkb_available() to pkb_tailroom() for consistency with Linux's
skb_tailroom(). Add pkb_headroom().
18 years ago
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
18 years ago
Michael Brown
3c2cc59d25
Added ability to break ISR processing over several calls to poll().
This will allow us to implement RX quotas.
18 years ago
Michael Brown
aa7bda7b47
Send EOI after enabling interrupt, in case the device had asserted IRQ
to the PIC while it was disabled.
18 years ago
Michael Brown
a2ffe8c123
Allow boot sector to completely destroy real-mode stack, but still
manage to return control.
18 years ago
Michael Brown
a9369bb503
Leave protected-mode return address on PM stack when issuing a
real_call(), rather than moving it to the RM stack and back again.
This allows the real-mode function to completely destroy the stack
contents, provided that it manages to return to real_call().
18 years ago
Michael Brown
2738bdf74b
Obsoleted by drivers/net/undionly.c
18 years ago
Michael Brown
d606edb41d
Added UNDI root bus driver (which saves including all the PCI bus code,
UNDI ROM code etc. when you just want a "undi.kpxe"-type image).
This driver cannot be used in conjunction with any other driver (it will
crash), or in any other format than .kpxe (it just won't find any network
devices).
18 years ago
Michael Brown
159930862f
Added missing call to undinet_remove()
18 years ago
Michael Brown
6b09dd8244
undipci_probe() has to calculate busdevfn anyway, so we may as well pass
it directly to undi_load_pci().
18 years ago
Michael Brown
ed44e3730d
Avoid erasing non-existent signatures in undi_unload()
18 years ago
Michael Brown
a2be828a33
Avoid leaving preloaded_undi with invalid PXENV+/!PXE structure
addresses if the signature checks fail.
18 years ago
Michael Brown
697bcc9d24
Since we now always unload the base code stack (even if we keep UNDI),
we can never return to the PXE stack and must always use INT 18.
18 years ago
Michael Brown
f2f492a536
If preloaded device matches, use that rather than going via the UNDI
loader.
18 years ago
Michael Brown
2436dac281
Populate preloaded_undi device when applicable.
18 years ago
Michael Brown
937289cdc8
Provide storage for an undi_device structure representing the preloaded
UNDI stack.
18 years ago
Michael Brown
47222d5ed8
Call PXENV_UNDI_GET_NIC_TYPE to identify NIC physical device.
Record all information required for populating a struct undi_device.
Make debugging output more human-readable.
18 years ago
Michael Brown
cea2221737
Use fixed-width fields in struct undi_device, so that pxeprefix.S will be
able to populate the structure.
18 years ago
Michael Brown
fbdebac5f4
Copy pxelinux's shutdown sequence: use UNLOAD_STACK without STOP_BASE,
and call UNDI_SHUTDOWN first to make sure the NIC is in a safe state.
18 years ago