Michael Brown
cfcc41d407
Set current working URI to be that of the executable image when
...
executing any image, not just a script. (This will enable pxelinux to
use relative URIs, should it wish to.)
2007-08-07 06:50:12 -07:00
Michael Brown
d4947c05b2
Allow images to hold references to the originating URI.
...
Some shuffling around of the image management code; this needs tidying up.
2007-08-02 20:18:32 +01:00
Holger Lubitz
1ccb6f9dc6
convert to zalloc
2007-07-06 21:08:21 +02:00
Michael Brown
b256900d4f
Scripts temporarily deregister themselves while executing. This
...
allows us to avoid execution loops without having to hack around the
image registration order.
2007-06-09 19:00:34 +01:00
Michael Brown
08e286714f
Add reference counting to register/unregister procedure.
2007-06-09 17:32:27 +01:00
Michael Brown
73b09ecba6
Use stdio.h instead of vsprintf.h
2007-01-19 01:13:12 +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
c1fd6e8dc7
Once image type has been set, do not autoprobe further
2007-01-14 15:25:23 +00:00
Michael Brown
7dc50167bb
Allow load() and exec() methods to be NULL.
2007-01-14 14:59:36 +00:00
Michael Brown
5c72d9c4e0
Print image physical location in registration message.
2007-01-12 16:20:51 +00:00
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.
2007-01-12 09:46:10 +00:00
Michael Brown
eba3609e7f
Add debug message
2007-01-12 08:57:51 +00:00
Michael Brown
475d6d1f7c
fetch() now knows nothing about struct image; it simply loads a file and
...
returns the allocated buffer.
2007-01-12 08:02:27 +00:00
Michael Brown
742f242863
Add free_image
2007-01-12 06:26:59 +00:00
Michael Brown
b9fea9cbac
Added IMAGE_LOADED flag and find_image()
2007-01-12 06:03:02 +00:00
Michael Brown
7bf94b5ad6
Allow for named images.
2007-01-11 23:45:18 +00:00
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.
2007-01-11 23:43:29 +00:00
Michael Brown
4fc9333159
Move include/image.h to include/gpxe/image.h
2007-01-11 16:04:36 +00:00
Michael Brown
e2dcd05b67
Update buffer-handling code to enable expandable buffers.
2007-01-11 03:50:47 +00:00
Michael Brown
bb2024c6d6
Move include/buffer.h to include/gpxe/buffer.h
2007-01-11 01:47:26 +00:00
Marty Connor
eb091f03e3
fix printf format args
2006-06-29 19:04:25 +00:00
Michael Brown
0afa9db2de
Tear out old heap code, replace with code that simply allocates memory
...
for use by malloc().
This breaks the image-loading code (which previously used the heap to
allocate the buffer for downloading the image), but that's not a major
concern since I'm going to tear out all the image formats within the next
couple of days anyway. Byebye, NBI! :)
2006-05-16 15:00:36 +00:00
Michael Brown
0571dcdb05
Added print_images() and autoload().
2005-05-17 13:38:24 +00:00
Michael Brown
58ee2c4b2e
First versions
2005-05-09 18:01:50 +00:00