Deleted Added
full compact
470a471,472
> ACPI_PARSE_OBJECT *StoreOp;
> ACPI_PARSE_OBJECT *BreakOp;
641,645c643
< Conditional->Asl.Parent = CurrentParentNode->Asl.Parent;
<
< /* Link IF into the peer list */
<
< TrAmlInsertPeer (CurrentParentNode, Conditional);
---
> Conditional->Asl.Next = NULL;
697a696
>
802c801,802
< * Transform the Switch() into a Store() node which will be used to save the
---
> * Transform the Switch() into a While(One)-Break node.
> * And create a Store() node which will be used to save the
806,807c806,810
< TrAmlInitNode (StartNode, PARSEOP_STORE);
< StartNode->Asl.Child = NULL;
---
> TrAmlInitNode (StartNode, PARSEOP_WHILE);
> NewOp = TrCreateLeafNode (PARSEOP_ONE);
> NewOp->Asl.Next = Predicate->Asl.Next;
> NewOp->Asl.Parent = StartNode;
> StartNode->Asl.Child = NewOp;
808a812,817
> /* Create a Store() node */
>
> StoreOp = TrCreateLeafNode (PARSEOP_STORE);
> StoreOp->Asl.Parent = StartNode;
> TrAmlInsertPeer (NewOp, StoreOp);
>
811,812c820,821
< StartNode->Asl.Child = Predicate;
< Predicate->Asl.Parent = StartNode;
---
> StoreOp->Asl.Child = Predicate;
> Predicate->Asl.Parent = StoreOp;
816c825
< NewOp->Asl.Parent = StartNode;
---
> NewOp->Asl.Parent = StoreOp;
817a827,838
>
> /* Create a Break() node and insert it into the end of While() */
>
> Conditional = StartNode->Asl.Child;
> while (Conditional->Asl.Next)
> {
> Conditional = Conditional->Asl.Next;
> }
>
> BreakOp = TrCreateLeafNode (PARSEOP_BREAK);
> BreakOp->Asl.Parent = StartNode;
> TrAmlInsertPeer (Conditional, BreakOp);