mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOSKRNL]
- Fix handling of HAL returning a different address space than we thought svn path=/trunk/; revision=54265
This commit is contained in:
parent
5fc47e3025
commit
fabd252d70
1 changed files with 10 additions and 6 deletions
|
@ -783,9 +783,12 @@ IopTranslateDeviceResources(
|
|||
|
||||
if (AddressSpace == 0)
|
||||
{
|
||||
/* This is actually a memory resource */
|
||||
DescriptorRaw->Type = CmResourceTypeMemory;
|
||||
DescriptorTranslated->Type = CmResourceTypeMemory;
|
||||
DPRINT1("Guessed incorrect address space: 1 -> 0\n");
|
||||
|
||||
/* FIXME: I think all other CM_RESOURCE_PORT_XXX flags are
|
||||
* invalid for this state but I'm not 100% sure */
|
||||
DescriptorRaw->Flags =
|
||||
DescriptorTranslated->Flags = CM_RESOURCE_PORT_MEMORY;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -825,9 +828,10 @@ IopTranslateDeviceResources(
|
|||
|
||||
if (AddressSpace != 0)
|
||||
{
|
||||
/* This is actually an I/O port resource */
|
||||
DescriptorRaw->Type = CmResourceTypePort;
|
||||
DescriptorTranslated->Type = CmResourceTypePort;
|
||||
DPRINT1("Guessed incorrect address space: 0 -> 1\n");
|
||||
|
||||
/* This should never happen for memory space */
|
||||
ASSERT(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue