diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-18 21:14:59 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-01-19 16:20:36 +0000 |
| commit | 83d98828867591b5d842573ed6edcec7392f82df (patch) | |
| tree | cc7340f1d13e7e999f460c2a751026420e1d14c5 /sys/vm | |
| parent | 3a6289e1e53ffe11b91b754d3b8241001b2cbfb8 (diff) | |
Diffstat (limited to 'sys/vm')
| -rw-r--r-- | sys/vm/vm_init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c index a0d3651ba266..2764b438d27b 100644 --- a/sys/vm/vm_init.c +++ b/sys/vm/vm_init.c @@ -159,6 +159,14 @@ vm_mem_init(void *dummy) pmap_init(); vm_pager_init(); + /* + * Now we can properly handle calls into vm_fault() from + * kernel page faults during initialization, typically to + * panic. Clear the nofaulting flag set for thread0 in the + * image, see kern/init_main.c + */ + curthread->td_pflags &= ~TDP_NOFAULTING; + #ifdef INVARIANTS vm_check_pagesizes(); #endif |
