Author: tkreuzer
Date: Sat Aug 30 19:04:06 2008
New Revision: 35823
URL:
http://svn.reactos.org/svn/reactos?rev=35823&view=rev
Log:
fix PCR
Modified:
branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h
Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h [iso-8859-1] Sat Aug 30
19:04:06 2008
@@ -30,7 +30,7 @@
//
//#define K0IPCR ((ULONG_PTR)(KIP0PCRADDRESS))
//#define PCR ((volatile KPCR * const)K0IPCR)
-#define PCR 0 // HACK
+#define PCR ((volatile KPCR * const)__readgsqword(KPCR_SELF))
//#if defined(CONFIG_SMP) || defined(NT_BUILD)
//#undef KeGetPcr
//#define KeGetPcr() ((volatile KPCR * const)__readfsdword(0x1C))