From eea101094720665ce96456dbca4f98ff07d84c70 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Sun, 27 Jan 2002 00:33:36 +0000 Subject: [PATCH] Fixed page fault handler to walk the correct memory space ( kernel or user ) depending on where the address is svn path=/trunk/; revision=2565 --- reactos/apps/utils/pice/module/pgflt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/apps/utils/pice/module/pgflt.c b/reactos/apps/utils/pice/module/pgflt.c index 75ff433226a..b2e8dc68835 100644 --- a/reactos/apps/utils/pice/module/pgflt.c +++ b/reactos/apps/utils/pice/module/pgflt.c @@ -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;