diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-03-31 04:38:48 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-03-31 04:38:48 +0100 |
commit | f7d2168c8eb23108e159a03416966b0f3c983320 (patch) | |
tree | 8d6dff5af83cfa23b5786a10e696d36c6088cc68 /src/hci | |
parent | edea441ad59bd6eaa75bc7613bb8b850f866de9e (diff) | |
download | ipxe-f7d2168c8eb23108e159a03416966b0f3c983320.tar.gz |
[segment] Add "Requested memory not available" error message
prep_segment() can sometimes fail because an image requests memory
that is already in use by gPXE. This will happen if
e.g. undionly.kpxe is used to boot memtest86; the memtest86 image is
an old-format kernel that needs to be loaded at 9000:0000, but this
area of memory may well already be in use by the underlying PXE stack.
Add a human-friendly error message, so that the cause is more
immediately visible.
Diffstat (limited to 'src/hci')
-rw-r--r-- | src/hci/strerror.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hci/strerror.c b/src/hci/strerror.c index 30532b398..8e7d878b6 100644 --- a/src/hci/strerror.c +++ b/src/hci/strerror.c @@ -115,5 +115,6 @@ struct errortab common_errors[] __errortab = { { ENOSPC, "No space left on device" }, { ENOTSUP, "Not supported" }, { EPERM, "Operation not permitted" }, + { ERANGE, "Out of range" }, { ETIMEDOUT, "Connection timed out" }, }; |