Deleted Added
sdiff udiff text old ( 67754 ) new ( 69450 )
full compact
1/******************************************************************************
2 *
3 * Module Name: dsobject - Dispatcher object management routines
4 * $Revision: 48 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights

--- 139 unchanged lines hidden (view full) ---

152 ACPI_HANDLE ObjHandle,
153 UINT32 Level,
154 void *Context,
155 void **ReturnValue)
156{
157 OBJECT_TYPE_INTERNAL Type;
158 ACPI_STATUS Status;
159 ACPI_INIT_WALK_INFO *Info = (ACPI_INIT_WALK_INFO *) Context;
160
161
162 Info->ObjectCount++;
163
164 /*
165 * We are only interested in objects owned by the table that
166 * was just loaded
167 */
168
169 if (((ACPI_NAMESPACE_NODE *) ObjHandle)->OwnerId !=
170 Info->TableDesc->TableId)

--- 18 unchanged lines hidden (view full) ---

189
190
191 case ACPI_TYPE_METHOD:
192
193 Info->MethodCount++;
194
195 DEBUG_PRINT_RAW (ACPI_OK, ("."));
196
197
198 /*
199 * Always parse methods to detect errors, we may delete
200 * the parse tree below
201 */
202
203 Status = AcpiDsParseMethod (ObjHandle);
204
205 /* TBD: [Errors] what do we do with an error? */
206
207 if (ACPI_FAILURE (Status))
208 {
209 DEBUG_PRINT (ACPI_ERROR,
210 ("DsInitOneObject: Method %p [%4.4s] parse failed! %s\n",
211 ObjHandle, &((ACPI_NAMESPACE_NODE *)ObjHandle)->Name,
212 AcpiCmFormatException (Status)));
213 break;
214 }
215
216 /*
217 * Keep the parse tree only if we are parsing all methods
218 * at init time (versus just-in-time)
219 */
220
221 if (AcpiGbl_WhenToParseMethods != METHOD_PARSE_AT_INIT)
222 {
223 AcpiNsDeleteNamespaceSubtree (ObjHandle);
224 }
225
226 break;
227
228 default:
229 break;
230 }
231
232 /*
233 * We ignore errors from above, and always return OK, since

--- 28 unchanged lines hidden (view full) ---

262 FUNCTION_TRACE ("DsInitializeObjects");
263
264
265 DEBUG_PRINT (TRACE_DISPATCH,
266 ("DsInitializeObjects: **** Starting initialization of namespace objects ****\n"));
267 DEBUG_PRINT_RAW (ACPI_OK, ("Parsing Methods:"));
268
269
270 Info.MethodCount = 0;
271 Info.OpRegionCount = 0;
272 Info.ObjectCount = 0;
273 Info.TableDesc = TableDesc;
274
275
276 /* Walk entire namespace from the supplied root */
277
278 Status = AcpiWalkNamespace (ACPI_TYPE_ANY, StartNode,
279 ACPI_UINT32_MAX, AcpiDsInitOneObject,
280 &Info, NULL);
281 if (ACPI_FAILURE (Status))

--- 224 unchanged lines hidden (view full) ---

506 *
507 * RETURN: Status
508 *
509 * DESCRIPTION: Translate a parser Op object to the equivalent namespace object
510 * Simple objects are any objects other than a package object!
511 *
512 ****************************************************************************/
513
514ACPI_STATUS
515AcpiDsBuildInternalSimpleObj (
516 ACPI_WALK_STATE *WalkState,
517 ACPI_PARSE_OBJECT *Op,
518 ACPI_OPERAND_OBJECT **ObjDescPtr)
519{
520 ACPI_OPERAND_OBJECT *ObjDesc;
521 OBJECT_TYPE_INTERNAL Type;
522 ACPI_STATUS Status;

--- 35 unchanged lines hidden (view full) ---

558 AcpiCmFree (Name);
559 }
560 else
561 {
562 REPORT_WARNING (("Reference %s AML 0x%X not found\n",
563 Op->Value.String, Op->AmlOffset));
564 }
565 *ObjDescPtr = NULL;
566 return_ACPI_STATUS (AE_OK);
567 }
568
569 return_ACPI_STATUS (Status);
570 }
571 }
572
573 /*
574 * The reference will be a Reference

--- 231 unchanged lines hidden ---