mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Hervé Poussineau <poussine@freesurf.fr>
Solve quarrel between GDB stub and serenum svn path=/trunk/; revision=14707
This commit is contained in:
parent
377ffd2516
commit
9da5e3306e
1 changed files with 32 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id:$
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -116,7 +116,37 @@ IoReportResourceForDetection(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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)
|
if (PopSystemPowerDeviceNode != NULL && DriverListSize > 0)
|
||||||
{
|
{
|
||||||
/* We hope legacy devices will be enumerated by ACPI */
|
/* We hope legacy devices will be enumerated by ACPI */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue