Deleted Added
full compact
dmwalk.c (100966) dmwalk.c (102550)
1/*******************************************************************************
2 *
3 * Module Name: dmwalk - AML disassembly tree walk
1/*******************************************************************************
2 *
3 * Module Name: dmwalk - AML disassembly tree walk
4 * $Revision: 6 $
4 * $Revision: 8 $
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.

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

119#include "acparser.h"
120#include "amlcode.h"
121#include "acdisasm.h"
122#include "acdebug.h"
123
124
125#ifdef ACPI_DISASSEMBLER
126
5 *
6 ******************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.

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

119#include "acparser.h"
120#include "amlcode.h"
121#include "acdisasm.h"
122#include "acdebug.h"
123
124
125#ifdef ACPI_DISASSEMBLER
126
127#define _COMPONENT ACPI_DEBUGGER
127#define _COMPONENT ACPI_CA_DEBUGGER
128 ACPI_MODULE_NAME ("dmwalk")
129
130
131#define DB_FULL_OP_INFO "%5.5X #%4.4hX "
132
133
128 ACPI_MODULE_NAME ("dmwalk")
129
130
131#define DB_FULL_OP_INFO "%5.5X #%4.4hX "
132
133
134
135/*******************************************************************************
136 *
137 * FUNCTION: AcpiDmDisassemble
138 *
139 * PARAMETERS: Origin - Starting object
140 * NumOpcodes - Max number of opcodes to be displayed
141 *
142 * RETURN: None

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

416/*******************************************************************************
417 *
418 * FUNCTION: AcpiDmDescendingOp
419 *
420 * PARAMETERS: ASL_WALK_CALLBACK
421 *
422 * RETURN: Status
423 *
134/*******************************************************************************
135 *
136 * FUNCTION: AcpiDmDisassemble
137 *
138 * PARAMETERS: Origin - Starting object
139 * NumOpcodes - Max number of opcodes to be displayed
140 *
141 * RETURN: None

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

415/*******************************************************************************
416 *
417 * FUNCTION: AcpiDmDescendingOp
418 *
419 * PARAMETERS: ASL_WALK_CALLBACK
420 *
421 * RETURN: Status
422 *
424 * DESCRIPTION: First visitation of a parse object during tree descent.
423 * DESCRIPTION: First visitation of a parse object during tree descent.
425 * Decode opcode name and begin parameter list(s), if any.
426 *
427 ******************************************************************************/
428
429ACPI_STATUS
430AcpiDmDescendingOp (
431 ACPI_PARSE_OBJECT *Op,
432 UINT32 Level,

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

478 Info->Level--;
479 }
480
481 /*
482 * Start the opcode argument list if necessary
483 */
484 OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
485
424 * Decode opcode name and begin parameter list(s), if any.
425 *
426 ******************************************************************************/
427
428ACPI_STATUS
429AcpiDmDescendingOp (
430 ACPI_PARSE_OBJECT *Op,
431 UINT32 Level,

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

477 Info->Level--;
478 }
479
480 /*
481 * Start the opcode argument list if necessary
482 */
483 OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
484
486 if ((OpInfo->Flags & AML_HAS_ARGS) ||
485 if ((OpInfo->Flags & AML_HAS_ARGS) ||
487 (Op->Common.AmlOpcode == AML_EVENT_OP))
488 {
489 /* This opcode has an argument list */
490
491 if (AcpiDmBlockType (Op) & BLOCK_PAREN)
492 {
493 AcpiOsPrintf (" (");
494 }

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

675 /* Single-step support */
676
677 return (AE_OK);
678 }
679
680 if (Op->Common.DisasmOpcode == ACPI_DASM_RESOURCE)
681 {
682 /*
486 (Op->Common.AmlOpcode == AML_EVENT_OP))
487 {
488 /* This opcode has an argument list */
489
490 if (AcpiDmBlockType (Op) & BLOCK_PAREN)
491 {
492 AcpiOsPrintf (" (");
493 }

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

674 /* Single-step support */
675
676 return (AE_OK);
677 }
678
679 if (Op->Common.DisasmOpcode == ACPI_DASM_RESOURCE)
680 {
681 /*
683 * We have a resource list. Don't need to output
682 * We have a resource list. Don't need to output
684 * the buffer size Op. Open up a new block
685 */
686 NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
687 NextOp = NextOp->Common.Next;
688 AcpiOsPrintf (")\n");
689 AcpiDmIndent (Info->Level);
690 AcpiOsPrintf ("{\n");
691 return (AE_OK);

--- 230 unchanged lines hidden ---
683 * the buffer size Op. Open up a new block
684 */
685 NextOp->Common.DisasmFlags |= ACPI_PARSEOP_IGNORE;
686 NextOp = NextOp->Common.Next;
687 AcpiOsPrintf (")\n");
688 AcpiDmIndent (Info->Level);
689 AcpiOsPrintf ("{\n");
690 return (AE_OK);

--- 230 unchanged lines hidden ---