[ros-diffs] [sserapion] 34833: Remove multiple declarations and minor fixes. Interlocked stuff is still a bit broken.

sserapion at svn.reactos.org sserapion at svn.reactos.org
Sun Jul 27 10:37:15 CEST 2008


Author: sserapion
Date: Sun Jul 27 03:37:14 2008
New Revision: 34833

URL: http://svn.reactos.org/svn/reactos?rev=34833&view=rev
Log:
Remove multiple declarations and minor fixes.
Interlocked stuff is still a bit broken.

Modified:
    branches/ros-amd64-bringup/reactos/include/ddk/winddk.h

Modified: branches/ros-amd64-bringup/reactos/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/include/ddk/winddk.h?rev=34833&r1=34832&r2=34833&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] Sun Jul 27 03:37:14 2008
@@ -760,27 +760,6 @@
   IN PVOID  MapRegisterBase,
   IN PVOID  Context);
 
-
-typedef struct _EXCEPTION_RECORD32
-{
-    NTSTATUS ExceptionCode;
-    ULONG ExceptionFlags;
-    ULONG ExceptionRecord;
-    ULONG ExceptionAddress;
-    ULONG NumberParameters;
-    ULONG ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
-} EXCEPTION_RECORD32, *PEXCEPTION_RECORD32;
-
-typedef struct _EXCEPTION_RECORD64
-{
-    NTSTATUS ExceptionCode;
-    ULONG ExceptionFlags;
-    ULONG64 ExceptionRecord;
-    ULONG64 ExceptionAddress;
-    ULONG NumberParameters;
-    ULONG __unusedAlignment;
-    ULONG64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
-} EXCEPTION_RECORD64, *PEXCEPTION_RECORD64;
 
 typedef EXCEPTION_DISPOSITION
 (DDKAPI *PEXCEPTION_ROUTINE)(
@@ -5518,6 +5497,12 @@
     VOID
     );
 
+NTKERNELAPI
+PRKTHREAD
+NTAPI
+KeGetCurrentThread(
+    VOID);
+
 #elif defined(__PowerPC__)
 
 typedef ULONG PFN_NUMBER, *PPFN_NUMBER;
@@ -5748,7 +5733,9 @@
  *   IN OUT PVOID VOLATILE  *Target,
  *   IN PVOID  Value)
  */
-#if !defined (_M_AMD64)
+#if defined (_M_AMD64)
+#define InterlockedExchangePointer _InterlockedExchangePointer
+#else
 #define InterlockedExchangePointer(Target, Value) \
   ((PVOID) InterlockedExchange((PLONG) Target, (LONG) Value))
 #endif
@@ -5760,12 +5747,13 @@
  *   IN PVOID  Exchange,
  *   IN PVOID  Comparand)
  */
-#if !defined (_M_AMD64)
+#if defined (_M_AMD64)
+#define InterlockedCompareExchangePointer _InterlockedCompareExchangePointer
+#else
 #define InterlockedCompareExchangePointer(Destination, Exchange, Comparand) \
   ((PVOID) InterlockedCompareExchange((PLONG) Destination, (LONG) Exchange, (LONG) Comparand))
 #endif
 
-#if defined (_M_AMD64)
 #define InterlockedExchangeAddSizeT(a, b) InterlockedExchangeAdd((LONG *)a, b)
 #define InterlockedIncrementSizeT(a) InterlockedIncrement((LONG *)a)
 #define InterlockedDecrementSizeT(a) InterlockedDecrement((LONG *)a)



More information about the Ros-diffs mailing list