Author: fireball
Date: Sun Jan 13 12:57:08 2008
New Revision: 31751
URL:
http://svn.reactos.org/svn/reactos?rev=31751&view=rev
Log:
- Add prefetcher initialize stub and CcFastMdlReadNotPossible from trunk.
- Silence a debug print.
Modified:
branches/cache_manager_rewrite/cc/cacheman.c
branches/cache_manager_rewrite/cc/copy.c
branches/cache_manager_rewrite/cc/view.c
Modified: branches/cache_manager_rewrite/cc/cacheman.c
URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/cc/cachem…
==============================================================================
--- branches/cache_manager_rewrite/cc/cacheman.c (original)
+++ branches/cache_manager_rewrite/cc/cacheman.c Sun Jan 13 12:57:08 2008
@@ -14,7 +14,26 @@
#define NDEBUG
#include <internal/debug.h>
+PFSN_PREFETCHER_GLOBALS CcPfGlobals;
+
/* FUNCTIONS *****************************************************************/
+
+VOID
+NTAPI
+CcPfInitializePrefetcher(VOID)
+{
+ /* Notify debugger */
+ DbgPrintEx(DPFLTR_PREFETCHER_ID,
+ DPFLTR_TRACE_LEVEL,
+ "CCPF: InitializePrefetecher()\n");
+
+ /* Setup the Prefetcher Data */
+ InitializeListHead(&CcPfGlobals.ActiveTraces);
+ InitializeListHead(&CcPfGlobals.CompletedTraces);
+ ExInitializeFastMutex(&CcPfGlobals.CompletedTracesLock);
+
+ /* FIXME: Setup the rest of the prefetecher */
+}
BOOLEAN NTAPI
CcInitializeCacheManager (VOID)
Modified: branches/cache_manager_rewrite/cc/copy.c
URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/cc/copy.c…
==============================================================================
--- branches/cache_manager_rewrite/cc/copy.c (original)
+++ branches/cache_manager_rewrite/cc/copy.c Sun Jan 13 12:57:08 2008
@@ -30,6 +30,7 @@
#endif
ULONG CcFastMdlReadWait;
+ULONG CcFastMdlReadNotPossible;
ULONG CcFastReadNotPossible;
ULONG CcFastReadWait;
ULONG CcFastReadNoWait;
Modified: branches/cache_manager_rewrite/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/branches/cache_manager_rewrite/cc/view.c…
==============================================================================
--- branches/cache_manager_rewrite/cc/view.c (original)
+++ branches/cache_manager_rewrite/cc/view.c Sun Jan 13 12:57:08 2008
@@ -137,7 +137,7 @@
MEMORY_AREA_CACHE_SEGMENT,
&CcCacheViewBase, Size, 0,
&CcCacheViewMemoryArea, FALSE, FALSE, BoundaryAddressMultiple);
MmUnlockAddressSpace (MmGetKernelAddressSpace ());
- DPRINT1 ("CcCacheViewBase: %x\n", CcCacheViewBase);
+ DPRINT ("CcCacheViewBase: %x\n", CcCacheViewBase);
if (!NT_SUCCESS (Status))
{
KEBUGCHECK (0);