Michael Brown
ab859a5355
Use a single _payload_offset linker-defined variable to locate the
start of the non-prefix blocks in the loaded image, and rely on the
image ordering. This should make introducing compression much easier.
17 years ago
Michael Brown
0b5059c40b
Skip the length field prepended by util/nrv2b.c
17 years ago
Michael Brown
b37e267d1b
Modified calling convention: we now update %esi and %edi just like a
"rep movsb".
17 years ago
Michael Brown
3feac9465e
"not" doesn't affect flags, "xor $-1" does.
17 years ago
Michael Brown
26473105cd
On advice of hpa: be more patient with the KBC and SCPA methods; retry
in a long loop before giving up on them. Record method which worked
and default to that method on next attempt.
17 years ago
Michael Brown
adf192f566
Shrink cpu.c and render it useful for our purposes.
17 years ago
Michael Brown
e330db3c74
Dead code removal.
Kill off use of etherboot.h outside drivers/net.
17 years ago
Michael Brown
95c07736cb
Be more aggressive in attempts to enable A20, now that we have the
optimisation of only trying to do so when necessary.
17 years ago
Michael Brown
8624fdc445
Kill off the enforced RX quota; it only seems to hurt on real hardware.
17 years ago
Michael Brown
57b5e227ff
Use fast in-situ test for gate A20 being set, to cut down on the
number of (potentially very slow) gateA20_set operations.
Die with a fatal error if we are unable to set gate A20; if this fails
then we are bound to experience memory corruption at a later stage,
and I'd prefer to pick it up early.
17 years ago
Michael Brown
2ac7694c3e
Improve error reporting for strange length combinations reported by
the UNDI stack.
Ignore obviously invalid length combinations (as returned by
e.g. VMWare's PXE stack).
Limit to one packet per poll to avoid memory exhaustion.
17 years ago
Michael Brown
efd322091d
Set up %ds *before* testing a value in our data segment (d'oh!).
Always send EOI; do not chain to BIOS's default interrupt handler.
They are just too unpredictable; at least VMware's seems to kill the
machine if you go anywhere near it.
Disable interrupts after return from PXENV_UNDI_ISR, just in case some
dumb PXE stack enables them.
17 years ago
Michael Brown
f6f9a3098d
Report RX errors via netdev_rx_err()
17 years ago
Michael Brown
fb16f90699
Dump first 64 bytes of chained ISR when debugging is enabled.
17 years ago
Michael Brown
edc4648c39
Protect ISR against failure to unhook.
17 years ago
Michael Brown
4e14b020a5
Master IRQ should be EOIed first, I think.
17 years ago
Michael Brown
19871cbb96
We probably ought not to call INT13 with interrupts disabled.
17 years ago
Michael Brown
027fed72c1
Working code to call the PXE stack from within the ISR.
17 years ago
Michael Brown
cd7e296cbe
Always increase number of BIOS drives when registering
17 years ago
Michael Brown
b90d321dfb
Change %dl fixup rules for INT13:
INT 13,08 : read number of drives from 40:75
INT 13,15 : do nothing
all others : restore original value of %dl
17 years ago
Michael Brown
c7d9fdb5b9
Proof of concept; works, but has several hard-coded hacks.
17 years ago
Michael Brown
8bce52d348
Set CF by default, clear on success (rather than clearing and setting
on failure).
17 years ago
Holger Lubitz
4ff85d9f15
Add -mpreferred-stack-boundary=2 to i386 CFLAGS as it's almost always a win.
17 years ago
Michael Brown
4c418d2100
Use net_device_operations structure and netdev_nullify() to allow for
safe dropping of the netdev ref by the driver while other refs still
exist.
Add netdev_irq() method. Net device open()/close() methods should no
longer enable or disable IRQs.
Remove rx_quota; it wasn't used anywhere and added too much complexity
to implementing correct interrupt-masking behaviour in pxe_undi.c.
17 years ago
Holger Lubitz
c7549bcebe
convert to zalloc
17 years ago
Holger Lubitz
bb61774ee4
convert to zalloc
17 years ago
Michael Brown
f660e8ef58
Add strlen_user() (will be needed for PXE API extensions)
17 years ago
Marty Connor
28d8d828b3
Rename .lilo extension to .lkrn and updated dependencies
17 years ago
Michael Brown
763a3eab8a
Add .pdsk target (padded .dsk, suitable for qemu).
17 years ago
Michael Brown
fbda4837b0
Allocate heap at first usage, rather than assuming we can fit it in
below _text. This should help with the gPXE-on-gPXE-via-PXE case.
17 years ago
Michael Brown
07ea125213
Use partition type 0xeb ("EtherBoot"), to avoid any attempts to mount
the Etherboot partition.
17 years ago
Michael Brown
6e082c9b81
Add .usb target
17 years ago
Michael Brown
a0f078d7f5
Working with multi-sector reads
17 years ago
Michael Brown
66208dd65d
hdprefix that works for LBA only
17 years ago
Michael Brown
839960276d
Miscellaneous efficiency improvements, and extend read_sectors to
handle multiple sectors.
17 years ago
Michael Brown
3c2d50e5de
Added active partition locator, and simple MBR built using it.
17 years ago
Michael Brown
738ebaf4a5
Revert "Added master boot record capable of locating active partition"
This reverts commit 844d088c51 .
17 years ago
Michael Brown
844d088c51
Added master boot record capable of locating active partition
(including logical partitions).
17 years ago
Michael Brown
5e3f2247e0
Kill off lots of warnings in via-velocity.c by correcting these definitions.
17 years ago
Michael Brown
ac69b85adb
UNDI loader entry point implemented; seems to work.
17 years ago
Michael Brown
1ecb9acb87
Fix typo
17 years ago
Michael Brown
dca470cb21
Add (untested) UNDI loader C-level implementation.
17 years ago
Michael Brown
89349d7fad
Separated out initialisation functions from startup/shutdown functions.
17 years ago
Marty Connor
79238335b0
remove obsolete file: src/arch/i386/prefix/int19exit.c
17 years ago
Marty Connor
9b3c4e4d79
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
17 years ago
Michael Brown
fae10a7ca1
We don't actually use the reset functions anywhere, and nothing really
provides them.
17 years ago
Michael Brown
2dc8ed1eb8
Work around Etherboot 5.4 bug when multiple packets are received.
17 years ago
Michael Brown
0958726ebb
It's not just Etherboot that fails to generate TX completions.
17 years ago
Michael Brown
adb3dd03e5
Document TX completion bug.
17 years ago
Michael Brown
071356d976
Ensure that pxe_netdev is set before starting up PXE NBP.
17 years ago