Michael Brown
d4947c05b2
Allow images to hold references to the originating URI.
Some shuffling around of the image management code; this needs tidying up.
il y a 17 ans
Michael Brown
4b08f4cf0f
Quick hack to get image booting working again
il y a 17 ans
Michael Brown
123a98db26
Added (non-functional) reference count to struct image
il y a 17 ans
Michael Brown
784e10635a
Can almost start a kernel now. It dies with "No setup signature found"
il y a 18 ans
Michael Brown
797edf28b7
Replace image->entry with image->priv.
il y a 18 ans
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.
il y a 18 ans
Michael Brown
2be2f3b205
Rearrange struct image to reflect usage of the fields
il y a 18 ans
Michael Brown
48e0fc3447
API change: the raw image will no longer be (hypothetically) discarded
after a call to load().
il y a 18 ans
Michael Brown
6fdc6c81a6
Force probing of multiboot before ELF.
il y a 18 ans
Michael Brown
475d6d1f7c
fetch() now knows nothing about struct image; it simply loads a file and
returns the allocated buffer.
il y a 18 ans
Michael Brown
742f242863
Add free_image
il y a 18 ans
Michael Brown
b9fea9cbac
Added IMAGE_LOADED flag and find_image()
il y a 18 ans
Michael Brown
9debfed07a
Place command-line inline, to save on memory allocation hassles.
il y a 18 ans
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.
il y a 18 ans
Michael Brown
c468c68661
Add command line that can be passed to executed images.
il y a 18 ans
Michael Brown
819cd3f41c
Limit -ENOEXEC to mean "this is not in my format".
il y a 18 ans
Michael Brown
c6c63d954d
Rename "image" field to "data", because "image->image" is just confusing.
il y a 18 ans
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
il y a 18 ans