mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL]
- Change the resource type if HalTranslateBusAddress indicates that we got the address type wrong svn path=/trunk/; revision=52356
This commit is contained in:
parent
722de7fe98
commit
eecc2a655e
1 changed files with 14 additions and 0 deletions
|
@ -758,6 +758,13 @@ IopTranslateDeviceResources(
|
|||
DPRINT1("Failed to translate port resource (Start: 0x%I64x)\n", DescriptorRaw->u.Port.Start.QuadPart);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (AddressSpace == 0)
|
||||
{
|
||||
/* This is actually a memory resource */
|
||||
DescriptorRaw->Type = CmResourceTypeMemory;
|
||||
DescriptorTranslated->Type = CmResourceTypeMemory;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CmResourceTypeInterrupt:
|
||||
|
@ -793,6 +800,13 @@ IopTranslateDeviceResources(
|
|||
DPRINT1("Failed to translate memory resource (Start: 0xI64x)\n", DescriptorRaw->u.Memory.Start.QuadPart);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (AddressSpace != 0)
|
||||
{
|
||||
/* This is actually an I/O port resource */
|
||||
DescriptorRaw->Type = CmResourceTypePort;
|
||||
DescriptorTranslated->Type = CmResourceTypePort;
|
||||
}
|
||||
}
|
||||
|
||||
case CmResourceTypeDma:
|
||||
|
|
Loading…
Reference in a new issue