vm_fault: move FAULT_* return codes out of range for Mach errors
This way a possible clash between FAULT_* and KERN_* numbering is avoided, and panics checks for fault_status confusion become more efficient. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40771
This commit is contained in:
parent
148ee84570
commit
ef747607ea
@ -161,7 +161,7 @@ struct faultstate {
|
||||
* Return codes for internal fault routines.
|
||||
*/
|
||||
enum fault_status {
|
||||
FAULT_SUCCESS = 1, /* Return success to user. */
|
||||
FAULT_SUCCESS = 10000, /* Return success to user. */
|
||||
FAULT_FAILURE, /* Return failure to user. */
|
||||
FAULT_CONTINUE, /* Continue faulting. */
|
||||
FAULT_RESTART, /* Restart fault. */
|
||||
|
Loading…
Reference in New Issue
Block a user