mirror of
https://github.com/acpica/acpica/
synced 2025-01-22 01:12:03 +03:00
iASL: Handle missing ResourceSource arg, present SourceIndex.
Handle the case for the Interrupt resource descriptor where the ResourceSource argument is omitted but ResourceSourceIndex is present. Leave room for the Index. BZ 426
This commit is contained in:
parent
5589bb45bc
commit
d2b15accf3
@ -2488,20 +2488,25 @@ RsDoInterruptDescriptor (
|
||||
|
||||
InitializerOp = Op->Asl.Child;
|
||||
StringLength = RsGetStringDataLength (InitializerOp);
|
||||
if (StringLength)
|
||||
{
|
||||
/* Make room for the ResourceSourceIndex */
|
||||
|
||||
OptionIndex++;
|
||||
}
|
||||
|
||||
/* Count the interrupt numbers */
|
||||
|
||||
for (i = 0; InitializerOp; i++)
|
||||
{
|
||||
InitializerOp = ASL_GET_PEER_NODE (InitializerOp);
|
||||
|
||||
if (i <= 6)
|
||||
{
|
||||
if (i == 3 &&
|
||||
InitializerOp->Asl.ParseOpcode != PARSEOP_DEFAULT_ARG)
|
||||
{
|
||||
/*
|
||||
* ResourceSourceIndex was specified, always make room for
|
||||
* it, even if the ResourceSource was omitted.
|
||||
*/
|
||||
OptionIndex++;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user