mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:52:56 +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);
|
DPRINT1("Failed to translate port resource (Start: 0x%I64x)\n", DescriptorRaw->u.Port.Start.QuadPart);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AddressSpace == 0)
|
||||||
|
{
|
||||||
|
/* This is actually a memory resource */
|
||||||
|
DescriptorRaw->Type = CmResourceTypeMemory;
|
||||||
|
DescriptorTranslated->Type = CmResourceTypeMemory;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CmResourceTypeInterrupt:
|
case CmResourceTypeInterrupt:
|
||||||
|
@ -793,6 +800,13 @@ IopTranslateDeviceResources(
|
||||||
DPRINT1("Failed to translate memory resource (Start: 0xI64x)\n", DescriptorRaw->u.Memory.Start.QuadPart);
|
DPRINT1("Failed to translate memory resource (Start: 0xI64x)\n", DescriptorRaw->u.Memory.Start.QuadPart);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (AddressSpace != 0)
|
||||||
|
{
|
||||||
|
/* This is actually an I/O port resource */
|
||||||
|
DescriptorRaw->Type = CmResourceTypePort;
|
||||||
|
DescriptorTranslated->Type = CmResourceTypePort;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case CmResourceTypeDma:
|
case CmResourceTypeDma:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue