From 1052bedeed0211c251a0bdf39961be0eb2bcdb16 Mon Sep 17 00:00:00 2001 From: Eugene Ingerman Date: Fri, 16 Aug 2002 22:03:07 +0000 Subject: [PATCH] Updated memory area const names. svn path=/trunk/; revision=3334 --- reactos/apps/utils/pice/module/parse.c | 3 +-- reactos/apps/utils/pice/module/pgflt.c | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/reactos/apps/utils/pice/module/parse.c b/reactos/apps/utils/pice/module/parse.c index 9365c836766..e5687398a33 100644 --- a/reactos/apps/utils/pice/module/parse.c +++ b/reactos/apps/utils/pice/module/parse.c @@ -1968,8 +1968,7 @@ COMMAND_PROTOTYPE(ShowVirtualMemory) MEMORY_AREA, Entry); // find the filename - if(((current->Type == MEMORY_AREA_SECTION_VIEW_COMMIT) || - (current->Type == MEMORY_AREA_SECTION_VIEW_RESERVE) )&& + if(((current->Type == MEMORY_AREA_SECTION_VIEW) ) && current->Data.SectionData.Section->FileObject) { if(IsAddressValid((ULONG)current->Data.SectionData.Section->FileObject->FileName.Buffer) ) diff --git a/reactos/apps/utils/pice/module/pgflt.c b/reactos/apps/utils/pice/module/pgflt.c index d912da1d047..6306f4b278b 100644 --- a/reactos/apps/utils/pice/module/pgflt.c +++ b/reactos/apps/utils/pice/module/pgflt.c @@ -63,14 +63,14 @@ ULONG HandleInDebuggerFault(FRAME* ptr,ULONG address) ENTER_FUNC(); - DPRINT((2,"HandleInDebuggerFault(): ###### page fault @ %.8X while inside debugger, eip: %x\n",address, ptr->eip)); + DPRINT((0,"HandleInDebuggerFault(): ###### page fault @ %.8X while inside debugger, eip: %x\n",address, ptr->eip)); // fault in this page fault handler if(bInPageFaultHandler) { - DPRINT((2,"HandleInDebuggerFault(): ###### page fault @ %.8X while in page fault handler\n",address)); + DPRINT((0,"HandleInDebuggerFault(): ###### page fault @ %.8X while in page fault handler\n",address)); - DPRINT((2,"!!! machine is halted !!!\n")); + DPRINT((0,"!!! machine is halted !!!\n")); __asm__ __volatile__ ("hlt"); LEAVE_FUNC(); @@ -83,7 +83,7 @@ ULONG HandleInDebuggerFault(FRAME* ptr,ULONG address) // so the current task is different as well tsk = IoGetCurrentProcess(); - DPRINT((2,"%.8X (%.4X:%.8X %.8X %s %s %s task=%.8X )\n", + DPRINT((0,"%.8X (%.4X:%.8X %.8X %s %s %s task=%.8X )\n", address, ptr->cs, ptr->eip, @@ -163,7 +163,7 @@ ULONG HandlePageFault(FRAME* ptr) // there's something terribly wrong if we get a fault in our command handler if(bInDebuggerShell) { - DPRINT((2,"return handleindebuggerfault\n")); + DPRINT((0,"return handleindebuggerfault\n")); return HandleInDebuggerFault(ptr,(ULONG)address); } @@ -181,8 +181,9 @@ ULONG HandlePageFault(FRAME* ptr) */ // current process tsk = IoGetCurrentProcess(); + DPRINT((0,"tsk: %x\t", tsk)); if( !tsk || !(IsAddressValid((ULONG)tsk))){ - DPRINT((2,"tsk address not valid: tsk: %x\n", tsk)); + DPRINT((0,"tsk address not valid: tsk: %x\n", tsk)); return 0; } @@ -207,25 +208,24 @@ ULONG HandlePageFault(FRAME* ptr) MEMORY_AREA, Entry); - DPRINT((0,"address: %x %x - %x Attrib: %x, Type: %x\n", address, current->BaseAddress, current->BaseAddress + current->Length, current->Attributes, current->Type)); if( (address >= current->BaseAddress) && (address <= current->BaseAddress + current->Length )) { + DPRINT((0,"address: %x %x - %x Attrib: %x, Type: %x\n", address, current->BaseAddress, current->BaseAddress + current->Length, current->Attributes, current->Type)); //page not present if( !(error_code & 1) ){ //check it is in pageable area - if( current->Type == MEMORY_AREA_SECTION_VIEW_COMMIT || - current->Type == MEMORY_AREA_SECTION_VIEW_RESERVE || + if( current->Type == MEMORY_AREA_SECTION_VIEW || current->Type == MEMORY_AREA_VIRTUAL_MEMORY || current->Type == MEMORY_AREA_PAGED_POOL || current->Type == MEMORY_AREA_SHARED_DATA ){ //ei too much output Print(OUTPUT_WINDOW,"pICE: VMA Pageable Section.\n"); - //ei DPRINT((2,"return 0 1\n")); + //ei DPRINT((0,"return 0 1\n")); return 0; //let the system handle this } Print(OUTPUT_WINDOW,"pICE: VMA Page not present in non-pageable Section!\n"); - //ei DPRINT((2,"Type: currenttype: %x return 1 2\n", current->Type)); + //ei DPRINT((0,"Type: currenttype: %x return 1 2\n", current->Type)); return 0; } else{ //access violation @@ -235,10 +235,10 @@ ULONG HandlePageFault(FRAME* ptr) if( (ULONG)address >= KERNEL_BASE ) { Print(OUTPUT_WINDOW,"pICE: User mode program trying to access kernel memory!\n"); - //DPRINT((2,"return 0 3\n")); + //DPRINT((0,"return 0 3\n")); return 1; } - //DPRINT((2,"return 0 4\n")); + //DPRINT((0,"return 0 4\n")); return 0; } /*