Hardware/WinRing0.cs
changeset 79 9cdbe1d8d12a
parent 46 f847947b7f8e
child 90 3333b29a1746
     1.1 --- a/Hardware/WinRing0.cs	Tue Mar 09 20:35:19 2010 +0000
     1.2 +++ b/Hardware/WinRing0.cs	Tue Mar 09 22:27:10 2010 +0000
     1.3 @@ -97,6 +97,7 @@
     1.4        uint regAddress, uint value);
     1.5      public delegate bool RdtscTxDelegate(out uint eax, out uint edx,
     1.6        UIntPtr threadAffinityMask);
     1.7 +    public delegate bool RdtscDelegate(out uint eax, out uint edx);
     1.8  
     1.9      private static InitializeOlsDelegate InitializeOls;
    1.10      private static DeinitializeOlsDelegate DeinitializeOls;
    1.11 @@ -114,6 +115,7 @@
    1.12      public static ReadPciConfigDwordExDelegate ReadPciConfigDwordEx;
    1.13      public static WritePciConfigDwordExDelegate WritePciConfigDwordEx;
    1.14      public static RdtscTxDelegate RdtscTx;
    1.15 +    public static RdtscDelegate Rdtsc;
    1.16  
    1.17      private static void GetDelegate<T>(string entryPoint, out T newDelegate) 
    1.18        where T : class 
    1.19 @@ -142,6 +144,7 @@
    1.20        GetDelegate("ReadPciConfigDwordEx", out ReadPciConfigDwordEx);
    1.21        GetDelegate("WritePciConfigDwordEx", out WritePciConfigDwordEx);
    1.22        GetDelegate("RdtscTx", out RdtscTx);
    1.23 +      GetDelegate("Rdtsc", out Rdtsc);
    1.24  
    1.25        try {
    1.26          if (InitializeOls != null && InitializeOls())