[ros-diffs] [sserapion] 39160: The wbinvd instruction is the same on amd64

sserapion at svn.reactos.org sserapion at svn.reactos.org
Wed Jan 28 04:07:51 CET 2009


Author: sserapion
Date: Tue Jan 27 21:07:51 2009
New Revision: 39160

URL: http://svn.reactos.org/svn/reactos?rev=39160&view=rev
Log:
The wbinvd instruction is the same on amd64

Modified:
    branches/ros-amd64-bringup/reactos/ntoskrnl/ex/sysinfo.c

Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/sysinfo.c
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskrnl/ex/sysinfo.c?rev=39160&r1=39159&r2=39160&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Tue Jan 27 21:07:51 2009
@@ -1953,7 +1953,7 @@
 {
     PAGED_CODE();
 
-#if defined(_M_IX86)
+#if defined(_M_IX86) || defined(_M_AMD64)
     __wbinvd();
 #elif defined(_M_PPC)
     __asm__ __volatile__("tlbsync");
@@ -1962,10 +1962,7 @@
     for (;;);
 #elif defined(_M_ARM)
     __asm__ __volatile__("mov r1, #0; mcr p15, 0, r1, c7, c5, 0");
-#elif defined(_M_AMD64)
-    DPRINT1("NtFlushInstructionCache() is not implemented\n");
-    for (;;);
-#else
+s#else
 #error Unknown architecture
 #endif
     return STATUS_SUCCESS;



More information about the Ros-diffs mailing list