Fixed page fault handler to walk the correct memory space ( kernel or user ) depending on where the address is

svn path=/trunk/; revision=2565
This commit is contained in:
Phillip Susi 2002-01-27 00:33:36 +00:00
parent b2f22718cc
commit eea1010947

View file

@ -187,7 +187,9 @@ ULONG HandlePageFault(FRAME* ptr)
}
// lookup VMA for this address
vma = &(tsk->AddressSpace);
if( address > KERNEL_BASE )
vma = my_init_mm; // use kernel mem area for kernel addresses
else vma = &(tsk->AddressSpace); // otherwise, use user memory area
if( !vma || !(IsAddressValid((ULONG)vma))){
DPRINT((0,"vma not valid: vma: %x\n", vma));
return 0;