mirror of
https://github.com/reactos/reactos.git
synced 2024-08-16 16:39:08 +00:00
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:
parent
b2f22718cc
commit
eea1010947
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue