Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. tc.h
  5. Abstract:
  6. This include file defines the Translation Cache interface.
  7. Author:
  8. Barry Bond (barrybo) creation-date 29-Jul-1995
  9. Revision History:
  10. --*/
  11. #ifndef _TC_H_
  12. #define _TC_H_
  13. extern ULONG TranslationCacheTimestamp;
  14. extern DWORD TranslationCacheFlags;
  15. BOOL
  16. InitializeTranslationCache(
  17. VOID
  18. );
  19. PCHAR
  20. AllocateTranslationCache(
  21. ULONG Size
  22. );
  23. VOID
  24. FreeUnusedTranslationCache(
  25. PCHAR StartOfFree
  26. );
  27. VOID
  28. PauseAllActiveTCReaders(
  29. VOID
  30. );
  31. VOID
  32. FlushTranslationCache(
  33. PVOID IntelAddr,
  34. DWORD IntelLength
  35. );
  36. BOOL
  37. AddressInTranslationCache(
  38. DWORD Addr
  39. );
  40. #if DBG
  41. VOID
  42. ASSERTPtrInTC(
  43. PVOID ptr
  44. );
  45. #define ASSERTPtrInTCOrZero(ptr) { \
  46. if (ptr) { \
  47. ASSERTPtrInTC(ptr); \
  48. } \
  49. }
  50. #else
  51. #define ASSERTPtrInTC(ptr)
  52. #define ASSERTPtrInTCOrZero(ptr)
  53. #endif
  54. #endif