Deleted Added
sdiff udiff text old ( 241973 ) new ( 243347 )
full compact
1/*******************************************************************************
2 *
3 * Module Name: dbmethod - Debug commands for control methods
4 *
5 ******************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2012, Intel Corp.

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

342
343
344 Method = AcpiDbConvertToNode (Name);
345 if (!Method)
346 {
347 return (AE_BAD_PARAMETER);
348 }
349
350 ObjDesc = Method->Object;
351
352 Op = AcpiPsCreateScopeOp ();
353 if (!Op)
354 {
355 return (AE_NO_MEMORY);
356 }
357
358 /* Create and initialize a new walk state */
359
360 WalkState = AcpiDsCreateWalkState (0, Op, NULL, NULL);
361 if (!WalkState)
362 {
363 return (AE_NO_MEMORY);
364 }
365
366 Status = AcpiDsInitAmlWalk (WalkState, Op, NULL,
367 ObjDesc->Method.AmlStart,
368 ObjDesc->Method.AmlLength, NULL, ACPI_IMODE_LOAD_PASS1);
369 if (ACPI_FAILURE (Status))
370 {
371 return (Status);
372 }
373
374 /* Parse the AML */
375
376 WalkState->ParseFlags &= ~ACPI_PARSE_DELETE_TREE;
377 WalkState->ParseFlags |= ACPI_PARSE_DISASSEMBLE;
378 Status = AcpiPsParseAml (WalkState);
379
380#ifdef ACPI_DISASSEMBLER
381 AcpiDmDisassemble (NULL, Op, 0);
382#endif
383 AcpiPsDeleteParseTree (Op);
384 return (AE_OK);
385}
386
387
388/*******************************************************************************
389 *
390 * FUNCTION: AcpiDbWalkForExecute
391 *

--- 138 unchanged lines hidden ---