Michael Brown
98240d99f0
Do not go past the end of the argv[] array.
This bug found by setting read and write watchpoints at NULL in bochs.
преди 18 години
Michael Brown
dca369ddc3
Call hide_etherboot() from startup(), rather than requiring the prefix to
do it.
преди 18 години
Michael Brown
c2708df14a
Make shutdown functions callable by OS image's exec methods.
преди 18 години
Michael Brown
beb941ed81
Rename "boot" to "autoboot"
преди 18 години
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.
преди 18 години
Michael Brown
3b77c7aa1b
Hex dumps are now integrated into the DBG() framework.
преди 18 години
Michael Brown
ca3db0bf11
Added isspace() and made strtoul() accept whitespace, as per POSIX.
преди 18 години
Michael Brown
83b7933f8a
Damn it; my lovely resilient scheme falls down when you have a protocol
that switches from line-oriented to byte-oriented partway through, such as
HTTP.
преди 18 години
Michael Brown
996b091b50
Added generic line-buffering code (a la stdio)
преди 18 години
Michael Brown
5c72d9c4e0
Print image physical location in registration message.
преди 18 години
Michael Brown
9952df9b52
Add "dhcp" command
преди 18 години
Michael Brown
e2c0055e23
Let ifmgmt.c take care of calling efree(), since it's the once which
took out the contract to eventually call efree() when it called fetch().
Maintain the most recently loaded image at the start of the list, so that
imgautoselect() will pick it.
преди 18 години
Michael Brown
67aedf34fa
Use systematic names for XXX_IMAGE.
Add scripts as an image format (since it's trivial to do).
преди 18 години
Michael Brown
eba3609e7f
Add debug message
преди 18 години
Michael Brown
5162f30028
Ignore comment lines.
Avoid returning errors for comments and empty lines.
преди 18 години
Michael Brown
475d6d1f7c
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
преди 18 години
Michael Brown
742f242863
Add free_image
преди 18 години
Michael Brown
9817f93094
Add basic "fetch" and "imgstat" commands.
преди 18 години
Michael Brown
b9fea9cbac
Added IMAGE_LOADED flag and find_image()
преди 18 години
Michael Brown
f15482d85f
Added basename() to make automatically naming images easier.
преди 18 години
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 години