-/* $Id:$
+/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
}
}
}
-
+
+ if ((KdDebugState & KD_DEBUG_GDB) && DriverList != NULL)
+ {
+ ULONG ComPortBase = 0;
+ ULONG i;
+ PCM_PARTIAL_RESOURCE_DESCRIPTOR ResourceDescriptor;
+
+ switch (GdbPortInfo.ComPort)
+ {
+ case 1: ComPortBase = 0x3f8; break;
+ case 2: ComPortBase = 0x2f8; break;
+ case 3: ComPortBase = 0x3e8; break;
+ case 4: ComPortBase = 0x2e8; break;
+ }
+
+ /* search for this port address in DriverList */
+ for (i = 0; i < DriverList->List[0].PartialResourceList.Count; i++)
+ {
+ ResourceDescriptor = &DriverList->List[0].PartialResourceList.PartialDescriptors[i];
+ if (ResourceDescriptor->Type == CmResourceTypePort)
+ {
+ if (ResourceDescriptor->u.Port.Start.u.LowPart <= ComPortBase
+ && ResourceDescriptor->u.Port.Start.u.LowPart + ResourceDescriptor->u.Port.Length > ComPortBase)
+ {
+ *ConflictDetected = TRUE;
+ return STATUS_CONFLICTING_ADDRESSES;
+ }
+ }
+ }
+ }
+
if (PopSystemPowerDeviceNode != NULL && DriverListSize > 0)
{
/* We hope legacy devices will be enumerated by ACPI */