Author: tkreuzer
Date: Thu Jul 24 14:36:04 2008
New Revision: 34750
URL:
http://svn.reactos.org/svn/reactos?rev=34750&view=rev
Log:
add ExpChangePushlock macro for _WIN64
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1]
(original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1] Thu Jul
24 14:36:04 2008
@@ -465,6 +465,7 @@
#ifdef _WIN64
#define ExpChangeRundown(x, y, z) InterlockedCompareExchange64((PLONGLONG)x, y, z)
+#define ExpChangePushlock(lock, new, old) InterlockedCompareExchangePointer((PVOID*)lock,
(PVOID)new, (PVOID)old)
#define ExpSetRundown(x, y) InterlockedExchange64((PLONGLONG)x, y)
#else
#define ExpChangeRundown(x, y, z) InterlockedCompareExchange((PLONG)x, PtrToLong(y),
PtrToLong(z))