1 /* See COPYRIGHT for copyright information. */
3 #ifndef JOS_INC_ERROR_H
4 #define JOS_INC_ERROR_H
6 // Kernel error codes -- keep in sync with list in lib/printfmt.c.
7 #define E_UNSPECIFIED 1 // Unspecified or unknown problem
8 #define E_BAD_ENV 2 // Environment doesn't exist or otherwise
9 // cannot be used in requested action
10 #define E_INVAL 3 // Invalid parameter
11 #define E_NO_MEM 4 // Request failed due to memory shortage
12 #define E_NO_FREE_ENV 5 // Attempt to create a new environment beyond
13 // the maximum allowed
14 #define E_FAULT 6 // Memory fault
18 #endif // !JOS_INC_ERROR_H */