dsopcode.c (114237) | dsopcode.c (117521) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: dsopcode - Dispatcher Op Region support and handling of 4 * "control" opcodes | 1/****************************************************************************** 2 * 3 * Module Name: dsopcode - Dispatcher Op Region support and handling of 4 * "control" opcodes |
5 * $Revision: 85 $ | 5 * $Revision: 87 $ |
6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp. --- 137 unchanged lines hidden (view full) --- 151 UINT8 *AmlStart) 152{ 153 ACPI_STATUS Status; 154 ACPI_PARSE_OBJECT *Op; 155 ACPI_WALK_STATE *WalkState; 156 ACPI_PARSE_OBJECT *Arg; 157 158 | 6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * 13 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp. --- 137 unchanged lines hidden (view full) --- 151 UINT8 *AmlStart) 152{ 153 ACPI_STATUS Status; 154 ACPI_PARSE_OBJECT *Op; 155 ACPI_WALK_STATE *WalkState; 156 ACPI_PARSE_OBJECT *Arg; 157 158 |
159 ACPI_FUNCTION_TRACE ("AcpiDsExecuteArguments"); | 159 ACPI_FUNCTION_TRACE ("DsExecuteArguments"); |
160 161 162 /* 163 * Allocate a new parser op to be the root of the parsed tree 164 */ 165 Op = AcpiPsAllocOp (AML_INT_EVAL_SUBTREE_OP); 166 if (!Op) 167 { 168 return_ACPI_STATUS (AE_NO_MEMORY); 169 } 170 171 /* Save the Node for use in AcpiPsParseAml */ 172 173 Op->Common.Node = ScopeNode; 174 175 /* Create and initialize a new parser state */ 176 | 160 161 162 /* 163 * Allocate a new parser op to be the root of the parsed tree 164 */ 165 Op = AcpiPsAllocOp (AML_INT_EVAL_SUBTREE_OP); 166 if (!Op) 167 { 168 return_ACPI_STATUS (AE_NO_MEMORY); 169 } 170 171 /* Save the Node for use in AcpiPsParseAml */ 172 173 Op->Common.Node = ScopeNode; 174 175 /* Create and initialize a new parser state */ 176 |
177 WalkState = AcpiDsCreateWalkState (TABLE_ID_DSDT, NULL, NULL, NULL); | 177 WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); |
178 if (!WalkState) 179 { 180 return_ACPI_STATUS (AE_NO_MEMORY); 181 } 182 183 Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, 184 AmlLength, NULL, NULL, 1); 185 if (ACPI_FAILURE (Status)) --- 27 unchanged lines hidden (view full) --- 213 { 214 return_ACPI_STATUS (AE_NO_MEMORY); 215 } 216 217 Op->Common.Node = ScopeNode; 218 219 /* Create and initialize a new parser state */ 220 | 178 if (!WalkState) 179 { 180 return_ACPI_STATUS (AE_NO_MEMORY); 181 } 182 183 Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, 184 AmlLength, NULL, NULL, 1); 185 if (ACPI_FAILURE (Status)) --- 27 unchanged lines hidden (view full) --- 213 { 214 return_ACPI_STATUS (AE_NO_MEMORY); 215 } 216 217 Op->Common.Node = ScopeNode; 218 219 /* Create and initialize a new parser state */ 220 |
221 WalkState = AcpiDsCreateWalkState (TABLE_ID_DSDT, NULL, NULL, NULL); | 221 WalkState = AcpiDsCreateWalkState (0, NULL, NULL, NULL); |
222 if (!WalkState) 223 { 224 return_ACPI_STATUS (AE_NO_MEMORY); 225 } 226 227 Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, 228 AmlLength, NULL, NULL, 3); 229 if (ACPI_FAILURE (Status)) --- 1034 unchanged lines hidden --- | 222 if (!WalkState) 223 { 224 return_ACPI_STATUS (AE_NO_MEMORY); 225 } 226 227 Status = AcpiDsInitAmlWalk (WalkState, Op, NULL, AmlStart, 228 AmlLength, NULL, NULL, 3); 229 if (ACPI_FAILURE (Status)) --- 1034 unchanged lines hidden --- |