Michael Brown
29dadc5ec6
Build automatically expanding buffers from struct buffer and erealloc().
18 年前
Michael Brown
6c894c2a2e
Fix typo
18 年前
Michael Brown
7bf94b5ad6
Allow for named images.
18 年前
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 年前
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
18 年前
Michael Brown
d9204ef676
Use physical address in debug messages; they make more sense to read.
18 年前
Michael Brown
3634e705b7
Remove osloader.c and replace with a prep_segment() that uses userptr_t
and get_memmap() in image/segment.c
18 年前
Michael Brown
fbfed96965
buffer.c should be using copy_{to,from}_user, rather than
copy_{to,from}_phys.
18 年前
Michael Brown
c0ef730ec4
Fix bug in buffer.c, add buffer mini-unit test.
18 年前
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
18 年前
Michael Brown
bb2024c6d6
Move include/buffer.h to include/gpxe/buffer.h
18 年前
Michael Brown
d45c5e7ce7
Add "route" command (which currently only displays the routing table; it
can't modify it).
18 年前
Michael Brown
77bb7b13a7
Having forced __table() to natural structure alignment, it now seems
that we *can* place arrays in tables, which means we can force the
order within a table without having to resort to explicitly numbered
sections on everything.
18 年前
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 年前
Michael Brown
55e590ab3a
Move header file for usr/autoboot.c to include/usr
18 年前
Michael Brown
d24b80acf2
Added network interface management commands
18 年前
Michael Brown
7b9617f5df
Add device to hierarchy before calling the driver's probe() function; this
way everything remains consistent if the probe() ends up creating child
devices.
18 年前
Michael Brown
0063725d28
Minimal hotplug support: provide a facility for notifying persistent
reference holders that their reference is about to become invalid.
18 年前
Michael Brown
2494625702
Added auto-colourising DBGC() macro
18 年前
Michael Brown
b6def29f2b
Keep running the main processing loop while waiting for input.
18 年前
Michael Brown
73e3e02367
Fix prototype of random() and move to stdlib.h
18 年前
Michael Brown
fbc7b4dfa8
Add iSCSI initiator IQN as a setting
18 年前
Michael Brown
839d425c6e
Added missing header
18 年前
Michael Brown
ae728f8d23
Some key sequences seem to end with a tilde
18 年前
Michael Brown
791c7d3bf4
Added code to interpret ANSI keypress sequences into KEY_XXX constants.
18 年前
Michael Brown
c21502acad
No longer needed
18 年前
Michael Brown
84202d89f0
Split the (quick hack) boot logic out from main.c to autoboot.c, add a
"boot" command to attempt booting from within the command shell, fall back
to shell if boot fails for any reason.
18 年前
Michael Brown
8f9336e0c1
Add "config" command to access config UI
18 年前
Michael Brown
2b97d2ebc5
8-bit integers are 1 byte long, not 8...
18 年前
Michael Brown
b93ff48173
Added descriptive text for settings and setting types, and display it in
the option config UI.
18 年前
Michael Brown
35edecac34
Move {show,set,clear}_setting() to {show,set,clear}_named_setting().
Introduce new {show,set,clear}_setting() that take a struct setting *
rather than a const char *.
set_setting() handles calling clear_setting() when appropriate, so that
individual setting types don't have to check for empty strings.
18 年前
Michael Brown
7766e34ed1
Split strerror() out from errno.c
18 年前
Michael Brown
84a2b886e1
Split error-message table portions of errno.h out to gpxe/errortab.h
18 年前
Michael Brown
4f506328ad
Use -ENOSPC rather than -ENOMEM, to distinguish the cases "generic out of
memory" and "no space left for DHCP options"
18 年前
Michael Brown
637a891264
Fix prototype of sleep() and move it to unistd.h
18 年前
Michael Brown
ec5789bf0c
Select required commands via config.h
18 年前
Michael Brown
38ad706b08
Use new minimal shell
18 年前
Michael Brown
19e1d674d3
Catch attempts to print NULL strings
18 年前
Michael Brown
70d20c4e7a
Use common symbols to avoid dragging in getopt.o unless a getopt-using
command is linked in.
18 年前
Michael Brown
1cd45decc4
Added support for interpreting ANSI escape sequences on behalf of
non-ANSI-capable consoles.
18 年前
Michael Brown
007ca97f25
Added clear_setting()
18 年前
Michael Brown
0a26cd2933
Cope with system("").
18 年前
Michael Brown
69b9048e1a
Added "priority" and "root-path" options
18 年前
Michael Brown
a77b32aaf6
D'oh d'oh d'oh d'oh d'oh d'oh d'oh d'oh d'oh
18 年前
Michael Brown
f3d817d512
Added execv() and system().
18 年前
Michael Brown
496563071d
Added strdup()
18 年前
Michael Brown
be0cd1cddd
Added a functional version of getopt() and getopt_long(), ready for use
in our commands.
18 年前
Michael Brown
2863d1a1de
inet_aton() has a non-traditional return value
18 年前
Michael Brown
d041d74054
Tied NVO commands into the human-interactable settings code that I
completely forgot I'd written ages ago.
18 年前
Michael Brown
16b81e442f
Added more debug messages
18 年前