summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/errno.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 42feb23a5..ec8b75559 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
*