mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 09:23:04 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user