kernel - don't print info about scheduled process if pagefault happened in kernel.

This commit is contained in:
Ben Gras 2010-05-11 15:14:10 +00:00
parent 713454aca7
commit 7c5e1d1b29

View File

@ -55,11 +55,15 @@ PRIVATE void pagefault( struct proc *pr,
return;
}
if(is_nested) {
panic("pagefault in kernel at address 0x%lx", pagefaultcr2);
}
/* System processes that don't have their own page table can't
* have page faults. VM does have its own page table but also
* can't have page faults (because VM has to handle them).
*/
if(is_nested || (pr->p_endpoint <= INIT_PROC_NR &&
if((pr->p_endpoint <= INIT_PROC_NR &&
!(pr->p_misc_flags & MF_FULLVM)) || pr->p_endpoint == VM_PROC_NR) {
/* Page fault we can't / don't want to
* handle.