mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[NTOS:IO] Fix parsing of resource lists
Also add a hack to avoid failing on now occurring resource conflict detection and try to fix at least one resource in ACPI hal. CORE-10146 CORE-12892
This commit is contained in:
parent
c42e1246d1
commit
b82bf8ce16
12 changed files with 146 additions and 48 deletions
|
@ -765,7 +765,7 @@ VideoPortGetAccessRanges(
|
|||
ERR_(VIDEOPRT, "Too many access ranges found\n");
|
||||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
}
|
||||
if (Descriptor->Type == CmResourceTypeMemory)
|
||||
else if (Descriptor->Type == CmResourceTypeMemory)
|
||||
{
|
||||
INFO_(VIDEOPRT, "Memory range starting at 0x%08x length 0x%08x\n",
|
||||
Descriptor->u.Memory.Start.u.LowPart, Descriptor->u.Memory.Length);
|
||||
|
@ -804,6 +804,11 @@ VideoPortGetAccessRanges(
|
|||
else
|
||||
DeviceExtension->InterruptShared = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
ASSERT(FALSE);
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
|
||||
return NO_ERROR;
|
||||
|
@ -838,7 +843,7 @@ VideoPortVerifyAccessRanges(
|
|||
if (!ResourceList)
|
||||
{
|
||||
WARN_(VIDEOPRT, "ExAllocatePool() failed\n");
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
return ERROR_NOT_ENOUGH_MEMORY;
|
||||
}
|
||||
|
||||
/* Fill resource list */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue