prefix DEBUG_CONTROL constants with AMD64 as they are architecture specific
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Oct 2009 11:53:30 +0000 (11:53 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Oct 2009 11:53:30 +0000 (11:53 +0000)
svn path=/branches/ros-amd64-bringup/; revision=43449

reactos/include/reactos/windbgkd.h
reactos/ntoskrnl/kd64/amd64/kdsup.c

index 97a6a76..19e804d 100644 (file)
 #define DBGKD_PARTITION_ALTERNATE           0x01
 
 //
 #define DBGKD_PARTITION_ALTERNATE           0x01
 
 //
-// Control Space types
+// AMD64 Control Space types
 //
 //
-#define DEBUG_CONTROL_SPACE_KPCR 0
-#define DEBUG_CONTROL_SPACE_KPRCB 1
-#define DEBUG_CONTROL_SPACE_KSPECIAL 2
-#define DEBUG_CONTROL_SPACE_KTHREAD 3
-#define X86_DEBUG_CONTROL_SPACE_KSPECIAL    716
+#define AMD64_DEBUG_CONTROL_SPACE_KPCR 0
+#define AMD64_DEBUG_CONTROL_SPACE_KPRCB 1
+#define AMD64_DEBUG_CONTROL_SPACE_KSPECIAL 2
+#define AMD64_DEBUG_CONTROL_SPACE_KTHREAD 3
 
 
 //
 
 
 //
index 2f293d7..2a3dcac 100644 (file)
@@ -185,25 +185,25 @@ KdpSysReadControlSpace(IN ULONG Processor,
 
         switch ((ULONG_PTR)BaseAddress)
         {
 
         switch ((ULONG_PTR)BaseAddress)
         {
-            case DEBUG_CONTROL_SPACE_KPCR:
+            case AMD64_DEBUG_CONTROL_SPACE_KPCR:
                 /* Copy a pointer to the Pcr */
                 ControlStart = &Pcr;
                 RealLength = sizeof(PVOID);
                 break;
 
                 /* Copy a pointer to the Pcr */
                 ControlStart = &Pcr;
                 RealLength = sizeof(PVOID);
                 break;
 
-            case DEBUG_CONTROL_SPACE_KPRCB:
+            case AMD64_DEBUG_CONTROL_SPACE_KPRCB:
                 /* Copy a pointer to the Prcb */
                 ControlStart = &Prcb;
                 RealLength = sizeof(PVOID);
                 break;
 
                 /* Copy a pointer to the Prcb */
                 ControlStart = &Prcb;
                 RealLength = sizeof(PVOID);
                 break;
 
-            case DEBUG_CONTROL_SPACE_KSPECIAL:
+            case AMD64_DEBUG_CONTROL_SPACE_KSPECIAL:
                 /* Copy SpecialRegisters */
                 ControlStart = &Prcb->ProcessorState.SpecialRegisters;
                 RealLength = sizeof(KSPECIAL_REGISTERS);
                 break;
 
                 /* Copy SpecialRegisters */
                 ControlStart = &Prcb->ProcessorState.SpecialRegisters;
                 RealLength = sizeof(KSPECIAL_REGISTERS);
                 break;
 
-            case DEBUG_CONTROL_SPACE_KTHREAD:
+            case AMD64_DEBUG_CONTROL_SPACE_KTHREAD:
                 /* Copy a pointer to the current Thread */
                 ControlStart = &Prcb->CurrentThread;
                 RealLength = sizeof(PVOID);
                 /* Copy a pointer to the current Thread */
                 ControlStart = &Prcb->CurrentThread;
                 RealLength = sizeof(PVOID);