Marty Connor
9b3c4e4d79
Warnings purge: src/arch/i386, src/core/disk.c, ramdisk, autoboot
2007-07-03 16:02:15 -04:00
Michael Brown
fae10a7ca1
We don't actually use the reset functions anywhere, and nothing really
...
provides them.
2007-07-03 20:34:51 +01:00
Michael Brown
e42eba4af4
Use a common base-memory packet buffer for DHCP construction (as used
...
by PXE and NBI) and UNDI packets (as used by undinet and UNDI).
2007-07-02 18:33:41 +01:00
Michael Brown
d5451d210c
Add ability to resolve relative symbols as well as locate absolute ones.
2007-06-30 22:59:15 +01:00
Michael Brown
8f6a4e8140
Add gdbsym.c object to help with running gdb-to-qemu
2007-06-30 22:43:31 +01:00
Michael Brown
045fb24557
Use internal real-mode stack from non-returnable prefixes
2007-06-28 21:56:14 +01:00
Michael Brown
ff7d0af585
Provide a buffer in base memory for code to fill with generated DHCP data.
2007-03-22 16:18:07 +00:00
Michael Brown
f06059ab97
More assertions
2007-02-01 02:18:22 +00:00
Michael Brown
c650c8c84a
Also print out stack pointer (with optional stack dump)
2007-02-01 02:17:59 +00:00
Michael Brown
406b20a64d
Assert that division result is correct
2007-01-31 23:58:52 +00:00
Michael Brown
c789e8640b
Added __umoddi3
2007-01-31 22:26:14 +00:00
Michael Brown
b3b6b25aeb
Handle (64-bit) / (32-bit) = (64-bit), i.e. one step beyond that
...
provided by the divl instruction.
2007-01-28 19:34:17 +00:00
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
2007-01-19 01:13:12 +00:00
Michael Brown
bd95927386
Accelerate memcpy() by around 32% on large, dword-aligned copies.
2007-01-18 15:18:02 +00:00
Michael Brown
544fa25928
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
...
reflect the fact that they allocate and deallocate user memory (i.e.
things reached through a userptr_t).
2007-01-16 08:36:42 +00:00
Michael Brown
77d280968a
Obsoleted by arch/i386/image/multiboot.c
2007-01-14 11:45:28 +00:00
Michael Brown
644f3674e6
Obsolete for some time
2007-01-14 02:24:41 +00:00
Michael Brown
ece4ff929e
Use _text, rather than assuming _text==0.
2007-01-14 00:03:07 +00:00
Michael Brown
77b7640af4
Fix the only bug (which was to use DBGC() in place of DBG()!) and add 4kB
...
alignment.
2007-01-12 03:28:03 +00:00
Michael Brown
45ec9c907e
First version of an external memory allocator (not tested)
2007-01-12 03:15:29 +00:00
Michael Brown
39a8ed827c
Long since obsoleted by arch/i386/scripts/i386.lds
2007-01-12 02:43:10 +00:00
Michael Brown
2e088d9afc
Obsoleted by arch/i386/interface/pxe/pxe_call.c
2007-01-12 02:42:14 +00:00
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.
2007-01-11 14:44:03 +00:00
Michael Brown
c980cdd0aa
Move memmap.h out of arch/i386; it no longer contains anything
...
architecture-dependent and is needed by the ELF code.
2007-01-11 14:08:44 +00:00
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
2007-01-11 03:50:47 +00:00
Michael Brown
fdc97499bf
Add device description fields to struct device.
2007-01-10 15:27:48 +00:00
Michael Brown
b12cd68726
Ripped out everything except the ability to send EOI to the PIC.
2007-01-04 19:36:18 +00:00
Michael Brown
88e38fa148
We don't actually have a stdio.h header file. Our printf() functions are
...
defined in vsprintf.h. (This may change, since vsprintf.h is a
non-standard name, but for now it's the one to use.)
There should be no need to include vsprintf.h just for DBG() statements,
since include/compiler.h forces it in for a debug build anyway.
2006-09-27 10:58:14 +00:00
Marty Connor
6ac78f6aff
added stdio.h to includes for DBG compilation
2006-09-27 05:57:06 +00:00
Michael Brown
df4b503a8c
Added null trap code for debugging. (Must be included by adding
...
--nulltrap to the make target at the moment.)
2006-06-11 01:48:29 +00:00
Michael Brown
4d81b48504
Has been obsolete for a while.
2006-05-25 00:04:37 +00:00
Michael Brown
1966945a5d
Update relocate() to work with get_memmap().
...
Change semantics; relocate() now just finds a suitable location; it
doesn't actually perform the relocation itself. Code in libprefix does
the copy in flat real mode.
2006-05-25 00:04:13 +00:00
Michael Brown
6631f46999
Updated to REAL_CODE().
2006-05-24 12:32:57 +00:00
Michael Brown
d48d0fb1bb
Add the concept of a "user pointer" (similar to the void __user * in
...
the kernel), which encapsulates the information needed to refer to an
external buffer. Under normal operation, this can just be a void *
equivalent, but under -DKEEP_IT_REAL it would be a segoff_t equivalent.
Use this concept to avoid the need for bounce buffers in int13.c,
which reduces memory usage and opens up the possibility of using
multi-sector reads.
Extend the block-device API and the SCSI block device implementation
to support multi-sector reads.
Update iscsi.c to use user buffers.
Move the obsolete portions of realmode.h to old_realmode.h.
MS-DOS now boots an order of magnitude faster over iSCSI (~10 seconds
from power-up to C:> prompt in bochs).
2006-05-19 15:06:51 +00:00
Michael Brown
6b6096d28b
Strip down i386 PCI configuration space I/O to the bare minimum. A
...
typical build will now include 880 bytes of PCI support code, compared to
2327 bytes in Etherboot 5.4.
(There is a slight cost of around 5 extra bytes per access to a
non-constant config space address; this should be an overall win.
Driver-specific accesses will usually be to constant addresses, for
which there is no additional cost.)
2006-05-17 01:12:11 +00:00
Michael Brown
15ee09ed10
Restructured PCI subsystem to fit the new device model.
...
Generic PCI code now handles 64-bit BARs correctly when setting
"membase"; drivers should need to call pci_bar_start() only if they want
to use BARs other than the first memory or I/O BAR.
Split rarely-used PCI functions out into pciextra.c.
Core PCI code is now 662 bytes (down from 1308 bytes in Etherboot 5.4).
284 bytes of this saving comes from the pci/pciextra split.
Cosmetic changes to lots of drivers (e.g. vendor_id->vendor in order to
match the names used in Linux).
2006-05-16 15:12:06 +00:00
Michael Brown
fcdab6299c
Missed a reference to heap.h.
2006-05-16 15:01:26 +00:00
Michael Brown
568cad0ddc
(Redoing check-in lost by SourceForge's failure.)
2006-05-13 11:30:03 +00:00
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.
2006-05-02 15:41:21 +00:00
Michael Brown
8f62b39c03
Move stack out to separate object, so that having a stack doesn't drag in
...
setup.S.
2006-05-02 14:57:48 +00:00
Michael Brown
352bf1bda2
Move init.h to gpxe/init.h.
2006-04-30 01:08:52 +00:00
Michael Brown
832e86246b
gcc is rather over-aggressive about optimising out static data structures
...
even when __atribute__ (( unused )) is correctly set...
2006-04-24 18:31:37 +00:00
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.
2006-04-24 15:42:49 +00:00
Michael Brown
7e0a7a2e08
Merge from Etherboot 5.4
2006-03-16 18:30:54 +00:00
Michael Brown
9b18017296
Merge from Etherboot 5.4
2006-03-16 18:15:48 +00:00
Michael Brown
079b5d5527
Moved pxe_loader.c to pxe_image.c to avoid name clash
2005-05-23 23:05:45 +00:00
Michael Brown
d3dec7c331
Update to cope with changes in registers.h
2005-05-20 11:23:51 +00:00
Michael Brown
4e87543c74
Synced across updates from Etherboot 5.4 tree
2005-05-19 16:47:19 +00:00
Michael Brown
205a7ad5e0
Moved NBI support to nbi.c, modified to work with new load mechanism
2005-05-17 13:42:20 +00:00
Michael Brown
9a413cfea1
Moved os_regs into start32.S
2005-05-17 13:37:01 +00:00
Michael Brown
a76b9c3f19
Added debug messages
2005-05-17 13:36:12 +00:00
Michael Brown
301b2d40f0
Use the heap functions to allocate a load buffer.
2005-05-13 13:30:51 +00:00
Michael Brown
9fc97f8513
First version
2005-05-09 18:02:22 +00:00
Michael Brown
b9e72856b6
Post-relocation functions use the generic table mechanism.
2005-04-27 12:10:24 +00:00
Michael Brown
63e0c8f947
xstart16() fixed up to use new REAL_EXEC mechanism.
2005-04-17 12:36:45 +00:00
Michael Brown
8e27e50316
We don't refer to _bss and _ebss any more.
2005-04-17 11:47:18 +00:00
Michael Brown
6e5a3858bf
Read number of PCI buses returned by BIOS so that we can scan more
...
quickly.
2005-04-16 11:16:31 +00:00
Michael Brown
44c7cc8c12
Standardised debug mechanism in place now.
2005-04-14 11:55:57 +00:00
Michael Brown
17aad49028
16-bit PCI BIOS interface also now known to work.
2005-04-12 16:42:14 +00:00
Michael Brown
bbcdf38214
Improved debug messages
2005-04-12 16:27:27 +00:00
Michael Brown
ff53205d0d
Should work for KEEP_IT_REAL as well now.
2005-04-12 13:35:31 +00:00
Michael Brown
0ccaf5bb83
Nearly there...
2005-04-12 13:31:36 +00:00
Michael Brown
87508aa0b2
arch_initialise() is now sufficiently generic that we may as well just
...
call it initialise() and place it in main.c. :)
2005-04-10 18:30:34 +00:00
Michael Brown
997b51c1e6
Use librm_arch_initialise for librm, arch_initialise for others.
2005-04-10 18:22:31 +00:00
Michael Brown
39cb1b4f9e
All the icky stuff is now taken care of by librm_arch_initialise
2005-04-10 18:21:27 +00:00
Michael Brown
f06e8c9707
Added post-relocation function table.
2005-04-10 18:18:37 +00:00
Michael Brown
04682f9838
Setup now calls initialise() directly, rather than expecting the
...
prefix to do it.
2005-04-10 16:46:46 +00:00
Michael Brown
dfb9c44994
hooks.o is now a single object, rather than having separate hooks.o and
...
hooks_rm.o
2005-04-10 16:44:29 +00:00
Michael Brown
44eee81d11
Don't build relocate() under KEEP_IT_REAL
2005-04-09 17:05:35 +00:00
Michael Brown
29f43896aa
Add relocate.h
...
Note that we can't make real-mode calls immediately after relocate_to().
2005-04-09 13:36:55 +00:00
Michael Brown
8039086ec8
Added a lot of explanatory comments.
...
Preserves alignment requested via _max_align parameter to linker.
2005-04-09 13:12:22 +00:00
Michael Brown
19176718be
callbacks.h no longer exists
2005-04-09 11:19:14 +00:00
Michael Brown
73dbe41007
Old callbacks mechanism is obsolete.
2005-04-09 11:16:17 +00:00
Michael Brown
a4920c16bd
Moved relocate.c to arch-specific dir, since it involves arch-specific
...
logic (e.g. avoiding memory regions with A20=0).
2005-04-09 10:49:26 +00:00
Michael Brown
0ff80b477d
Merged mcb30-realmode-redesign back to HEAD
2005-04-08 15:01:17 +00:00
Michael Brown
3d6123e69a
Initial revision
2005-03-08 18:53:11 +00:00