Leaked source code of windows server 2003
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.

55 lines
947 B

  1. /*++
  2. Copyright (c) 1997-8 Microsoft Corporation
  3. Module Name:
  4. pat.h
  5. Abstract:
  6. This module contains the i386 specific Page Attribute
  7. Table (PAT) register hardware definitions.
  8. Author:
  9. Shivnandan Kaushik (Intel Corp)
  10. Environment:
  11. Kernel mode only.
  12. Revision History:
  13. --*/
  14. //
  15. // PAT MSR architecture definitions
  16. //
  17. //
  18. // PAT model specific register
  19. //
  20. #define PAT_MSR 0x277
  21. //
  22. // PAT memory attributes
  23. //
  24. #define PAT_TYPE_STRONG_UC 0 // corresponds to PPro PCD=1,PWT=1
  25. #define PAT_TYPE_USWC 1
  26. #define PAT_TYPE_WT 4
  27. #define PAT_TYPE_WP 5
  28. #define PAT_TYPE_WB 6
  29. #define PAT_TYPE_WEAK_UC 7 // corresponds to PPro PCD=1,PWT=0
  30. #define PAT_TYPE_MAX 8
  31. #include "pshpack1.h"
  32. typedef union _PAT {
  33. struct {
  34. UCHAR Pat[8];
  35. } hw;
  36. ULONGLONG QuadPart;
  37. } PAT, *PPAT;
  38. #include "poppack.h"