diff --git a/src/include/errno.h b/src/include/errno.h index 42feb23a..ec8b7555 100644 --- a/src/include/errno.h +++ b/src/include/errno.h @@ -51,6 +51,9 @@ * */ +/** Derive PXENV_STATUS code from gPXE error number */ +#define PXENV_STATUS( rc ) ( (-(rc)) & 0x00ff ) + /** * @defgroup pxeerrors PXE error codes *