[NTOSKRNL]
[reactos.git] / ntoskrnl / kd64 / kdinit.c
index 542b8de..e45bdc6 100644 (file)
@@ -70,6 +70,7 @@ KdRegisterDebuggerDataBlock(IN ULONG Tag,
 
 BOOLEAN
 NTAPI
+INIT_FUNCTION
 KdInitSystem(IN ULONG BootPhase,
              IN PLOADER_PARAMETER_BLOCK LoaderBlock)
 {
@@ -78,7 +79,8 @@ KdInitSystem(IN ULONG BootPhase,
     STRING ImageName;
     PLDR_DATA_TABLE_ENTRY LdrEntry;
     PLIST_ENTRY NextEntry;
-    ULONG i, j, Length, DebugOptionLength;
+    ULONG i, j, Length;
+    SIZE_T DebugOptionLength;
     CHAR NameBuffer[256];
     PWCHAR Name;
 
@@ -208,8 +210,7 @@ KdInitSystem(IN ULONG BootPhase,
                         }
 
                         /* Calculate the length of the current option */
-                        DebugOptionLength = ((ULONG_PTR)DebugOptionEnd -
-                                             (ULONG_PTR)DebugOptionStart);
+                        DebugOptionLength = (DebugOptionEnd - DebugOptionStart);
 
                        /*
                         * Break out if we reached the last option
@@ -223,7 +224,7 @@ KdInitSystem(IN ULONG BootPhase,
                         {
                             /*
                              * Disable the debugger, but
-                             * allow it to be reenabled 
+                             * allow it to be reenabled
                              */
                             DisableKdAfterInit = TRUE;
                             BlockEnable = FALSE;
@@ -245,7 +246,7 @@ KdInitSystem(IN ULONG BootPhase,
                         }
 
                         /*
-                         * If there are more options then 
+                         * If there are more options then
                          * the next character should be a comma
                          */
                         if (*DebugOptionEnd != ',')