https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5c75ce506c37ff8d4e703e467694ac07185112c

commit b5c75ce506c37ff8d4e703e467694ac07185112c
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Sun Nov 7 04:21:40 2021 +0100
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Thu Sep 21 13:33:25 2023 +0200

    [NTOS:EX] Minor header formatting.
---
 ntoskrnl/include/internal/ex.h | 66 +++++++++++++++++++++---------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/ntoskrnl/include/internal/ex.h b/ntoskrnl/include/internal/ex.h
index 66728280125..03d9d29a8b5 100644
--- a/ntoskrnl/include/internal/ex.h
+++ b/ntoskrnl/include/internal/ex.h
@@ -72,35 +72,35 @@ extern ULONG_PTR ExpDebuggerPageIn;
 VOID NTAPI ExpDebuggerWorker(IN PVOID Context);
 
 #ifdef _WIN64
-#define HANDLE_LOW_BITS (PAGE_SHIFT - 4)
-#define HANDLE_HIGH_BITS (PAGE_SHIFT - 3)
+#define HANDLE_LOW_BITS     (PAGE_SHIFT - 4)
+#define HANDLE_HIGH_BITS    (PAGE_SHIFT - 3)
 #else
-#define HANDLE_LOW_BITS (PAGE_SHIFT - 3)
-#define HANDLE_HIGH_BITS (PAGE_SHIFT - 2)
+#define HANDLE_LOW_BITS     (PAGE_SHIFT - 3)
+#define HANDLE_HIGH_BITS    (PAGE_SHIFT - 2)
 #endif
-#define HANDLE_TAG_BITS (2)
-#define HANDLE_INDEX_BITS (HANDLE_LOW_BITS + 2*HANDLE_HIGH_BITS)
-#define KERNEL_FLAG_BITS (sizeof(PVOID)*8 - HANDLE_INDEX_BITS - 
HANDLE_TAG_BITS)
+#define HANDLE_TAG_BITS     (2)
+#define HANDLE_INDEX_BITS   (HANDLE_LOW_BITS + 2*HANDLE_HIGH_BITS)
+#define KERNEL_FLAG_BITS    (sizeof(PVOID)*8 - HANDLE_INDEX_BITS - 
HANDLE_TAG_BITS)
 
 typedef union _EXHANDLE
 {
-     struct
-     {
-         ULONG_PTR TagBits:     HANDLE_TAG_BITS;
-         ULONG_PTR Index:       HANDLE_INDEX_BITS;
-         ULONG_PTR KernelFlag : KERNEL_FLAG_BITS;
-     };
-     struct
-     {
-         ULONG_PTR TagBits2:    HANDLE_TAG_BITS;
-         ULONG_PTR LowIndex:    HANDLE_LOW_BITS;
-         ULONG_PTR MidIndex:    HANDLE_HIGH_BITS;
-         ULONG_PTR HighIndex:   HANDLE_HIGH_BITS;
-         ULONG_PTR KernelFlag2: KERNEL_FLAG_BITS;
-     };
-     HANDLE GenericHandleOverlay;
-     ULONG_PTR Value;
-     ULONG AsULONG;
+    struct
+    {
+        ULONG_PTR TagBits:      HANDLE_TAG_BITS;
+        ULONG_PTR Index:        HANDLE_INDEX_BITS;
+        ULONG_PTR KernelFlag:   KERNEL_FLAG_BITS;
+    };
+    struct
+    {
+        ULONG_PTR TagBits2:     HANDLE_TAG_BITS;
+        ULONG_PTR LowIndex:     HANDLE_LOW_BITS;
+        ULONG_PTR MidIndex:     HANDLE_HIGH_BITS;
+        ULONG_PTR HighIndex:    HANDLE_HIGH_BITS;
+        ULONG_PTR KernelFlag2:  KERNEL_FLAG_BITS;
+    };
+    HANDLE GenericHandleOverlay;
+    ULONG_PTR Value;
+    ULONG AsULONG;
 } EXHANDLE, *PEXHANDLE;
 
 typedef struct _ETIMER
@@ -131,12 +131,12 @@ typedef struct _HARDERROR_USER_PARAMETERS
 
 #define MAX_FAST_REFS           7
 
-#define ExAcquireRundownProtection                      
_ExAcquireRundownProtection
-#define ExReleaseRundownProtection                      
_ExReleaseRundownProtection
-#define ExInitializeRundownProtection                   
_ExInitializeRundownProtection
-#define ExWaitForRundownProtectionRelease               
_ExWaitForRundownProtectionRelease
-#define ExRundownCompleted                              _ExRundownCompleted
-#define ExGetPreviousMode                               KeGetPreviousMode
+#define ExAcquireRundownProtection          _ExAcquireRundownProtection
+#define ExReleaseRundownProtection          _ExReleaseRundownProtection
+#define ExInitializeRundownProtection       _ExInitializeRundownProtection
+#define ExWaitForRundownProtectionRelease   _ExWaitForRundownProtectionRelease
+#define ExRundownCompleted                  _ExRundownCompleted
+#define ExGetPreviousMode                   KeGetPreviousMode
 
 
 //
@@ -159,9 +159,9 @@ typedef struct _HARDERROR_USER_PARAMETERS
 #define MAX_MID_INDEX       (MID_LEVEL_ENTRIES * LOW_LEVEL_ENTRIES)
 #define MAX_HIGH_INDEX      (MID_LEVEL_ENTRIES * MID_LEVEL_ENTRIES * 
LOW_LEVEL_ENTRIES)
 
-#define ExpChangeRundown(x, y, z) 
(ULONG_PTR)InterlockedCompareExchangePointer(&x->Ptr, (PVOID)y, (PVOID)z)
-#define ExpChangePushlock(x, y, z) 
InterlockedCompareExchangePointer((PVOID*)x, (PVOID)y, (PVOID)z)
-#define ExpSetRundown(x, y) InterlockedExchangePointer(&x->Ptr, (PVOID)y)
+#define ExpChangeRundown(x, y, z)   
(ULONG_PTR)InterlockedCompareExchangePointer(&x->Ptr, (PVOID)y, (PVOID)z)
+#define ExpChangePushlock(x, y, z)  
InterlockedCompareExchangePointer((PVOID*)x, (PVOID)y, (PVOID)z)
+#define ExpSetRundown(x, y)         InterlockedExchangePointer(&x->Ptr, 
(PVOID)y)
 
 NTSTATUS
 NTAPI

Reply via email to