* Block entry into the machine-independent layer's page fault handler by * the calling thread. Subsequent calls to vm_fault() by that thread will * return KERN_PROTECTION_FAILURE. Enable machine-dependent handling of * spurious page faults. */
| 2086 | * spurious page faults. |
| 2087 | */ |
| 2088 | int |
| 2089 | vm_fault_disable_pagefaults(void) |
| 2090 | { |
| 2091 | |
| 2092 | return (curthread_pflags_set(TDP_NOFAULTING | TDP_RESETSPUR)); |
| 2093 | } |
| 2094 | |
| 2095 | void |
| 2096 | vm_fault_enable_pagefaults(int save) |
no test coverage detected