]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[libc] Redefine low 8 bits of error code as "platform error code"
authorMichael Brown <mcb30@ipxe.org>
Fri, 19 Apr 2013 12:34:13 +0000 (13:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 19 Apr 2013 12:34:13 +0000 (13:34 +0100)
commit73480352315a12fdef467402ea41be9ac285e4e7
tree340080bc152462a85305d007c7af21e07bdfb556
parente42bc3aa37698941be20cccde599af39c69227e2
[libc] Redefine low 8 bits of error code as "platform error code"

The low 8 bits of an iPXE error code are currently defined as the
closest equivalent PXE error code.  Generalise this scheme to
platforms other than PC-BIOS by extending this definition to "closest
equivalent platform error code".  This allows for the possibility of
returning meaningful errors via EFI APIs.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/include/ipxe/errno/pcbios.h [new file with mode: 0644]
src/arch/i386/include/pxe.h
src/arch/i386/include/pxe_error.h [new file with mode: 0644]
src/include/errno.h
src/include/ipxe/errno/efi.h [new file with mode: 0644]
src/include/ipxe/errno/linux.h [new file with mode: 0644]
src/util/einfo.c