1 /*******************************************************************************
3 * Module Name: dbdisply - debug display commands
6 ******************************************************************************/
8 /******************************************************************************
12 * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
13 * All rights reserved.
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 * copy of the source code appearing in this file ("Covered Code") an
24 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 * base code distributed originally by Intel ("Original Intel Code") to copy,
26 * make derivatives, distribute, use and display any portion of the Covered
27 * Code in any form, with the right to sublicense such rights; and
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 * license (with the right to sublicense), under only those claims of Intel
31 * patents that are infringed by the Original Intel Code, to make, use, sell,
32 * offer to sell, and import the Covered Code and derivative works thereof
33 * solely to the minimum extent necessary to exercise the above copyright
34 * license, and in no event shall the patent license extend to any additions
35 * to or modifications of the Original Intel Code. No other license or right
36 * is granted directly or by implication, estoppel or otherwise;
38 * The above copyright and patent license is granted only if the following
43 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 * Redistribution of source code of any substantial portion of the Covered
45 * Code or modification with rights to further distribute source must include
46 * the above Copyright Notice, the above License, this list of Conditions,
47 * and the following Disclaimer and Export Compliance provision. In addition,
48 * Licensee must cause all Covered Code to which Licensee contributes to
49 * contain a file documenting the changes Licensee made to create that Covered
50 * Code and the date of any change. Licensee must include in that file the
51 * documentation of any changes made by any predecessor Licensee. Licensee
52 * must include a prominent statement that the modification is derived,
53 * directly or indirectly, from Original Intel Code.
55 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 * Redistribution of source code of any substantial portion of the Covered
57 * Code or modification without rights to further distribute source must
58 * include the following Disclaimer and Export Compliance provision in the
59 * documentation and/or other materials provided with distribution. In
60 * addition, Licensee may not authorize further sublicense of source of any
61 * portion of the Covered Code, and must include terms to the effect that the
62 * license from Licensee to its licensee is limited to the intellectual
63 * property embodied in the software Licensee provides to its licensee, and
64 * not to intellectual property embodied in modifications its licensee may
67 * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 * substantial portion of the Covered Code or modification must reproduce the
69 * above Copyright Notice, and the following Disclaimer and Export Compliance
70 * provision in the documentation and/or other materials provided with the
73 * 3.4. Intel retains all right, title, and interest in and to the Original
76 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 * Intel shall be used in advertising or otherwise to promote the sale, use or
78 * other dealings in products derived from or relating to the Covered Code
79 * without prior written authorization from Intel.
81 * 4. Disclaimer and Export Compliance
83 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
86 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
87 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
88 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
91 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
97 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
100 * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 * software or system incorporating such software without first obtaining any
102 * required license or other approval from the U. S. Department of Commerce or
103 * any other agency or department of the United States Government. In the
104 * event Licensee exports any such software from the United States or
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
107 * compliance with all laws, regulations, orders, or other restrictions of the
108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 * any of its subsidiaries will export/re-export any technical data, process,
110 * software, or service, directly or indirectly, to any country for which the
111 * United States government or any agency thereof requires an export license,
112 * other governmental approval, or letter of assurance, without first obtaining
113 * such license, approval or letter.
115 *****************************************************************************/
116 /* $DragonFly: src/sys/contrib/dev/acpica/Attic/dbdisply.c,v 1.1 2003/09/24 03:32:15 drhodus Exp $ */
120 #include "acdispat.h"
121 #include "acnamesp.h"
122 #include "acparser.h"
123 #include "acinterp.h"
130 #define _COMPONENT ACPI_CA_DEBUGGER
131 ACPI_MODULE_NAME ("dbdisply")
134 /******************************************************************************
136 * FUNCTION: AcpiDbGetPointer
138 * PARAMETERS: Target - Pointer to string to be converted
140 * RETURN: Converted pointer
142 * DESCRIPTION: Convert an ascii pointer value to a real value
144 *****************************************************************************/
153 #if ACPI_MACHINE_WIDTH == 16
156 /* Have to handle 16-bit pointers of the form segment:offset */
158 if (!sscanf (Target, "%p", &ObjPtr))
160 AcpiOsPrintf ("Invalid pointer: %s\n", Target);
166 /* Simple flat pointer */
168 ObjPtr = ACPI_TO_POINTER (ACPI_STRTOUL (Target, NULL, 16));
175 /*******************************************************************************
177 * FUNCTION: AcpiDbDumpParserDescriptor
179 * PARAMETERS: Op - A parser Op descriptor
183 * DESCRIPTION: Display a formatted parser object
185 ******************************************************************************/
188 AcpiDbDumpParserDescriptor (
189 ACPI_PARSE_OBJECT *Op)
191 const ACPI_OPCODE_INFO *Info;
194 Info = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
196 AcpiOsPrintf ("Parser Op Descriptor:\n");
197 AcpiOsPrintf ("%20.20s : %4.4X\n", "Opcode", Op->Common.AmlOpcode);
199 ACPI_DEBUG_ONLY_MEMBERS (AcpiOsPrintf ("%20.20s : %s\n", "Opcode Name", Info->Name));
201 AcpiOsPrintf ("%20.20s : %p\n", "Value/ArgList", Op->Common.Value.Arg);
202 AcpiOsPrintf ("%20.20s : %p\n", "Parent", Op->Common.Parent);
203 AcpiOsPrintf ("%20.20s : %p\n", "NextOp", Op->Common.Next);
207 /*******************************************************************************
209 * FUNCTION: AcpiDbDecodeAndDisplayObject
211 * PARAMETERS: Target - String with object to be displayed. Names
212 * and hex pointers are supported.
213 * OutputType - Byte, Word, Dword, or Qword (B|W|D|Q)
217 * DESCRIPTION: Display a formatted ACPI object
219 ******************************************************************************/
222 AcpiDbDecodeAndDisplayObject (
227 ACPI_NAMESPACE_NODE *Node;
228 ACPI_OPERAND_OBJECT *ObjDesc;
229 UINT32 Display = DB_BYTE_DISPLAY;
241 /* Decode the output type */
245 ACPI_STRUPR (OutputType);
246 if (OutputType[0] == 'W')
248 Display = DB_WORD_DISPLAY;
250 else if (OutputType[0] == 'D')
252 Display = DB_DWORD_DISPLAY;
254 else if (OutputType[0] == 'Q')
256 Display = DB_QWORD_DISPLAY;
260 RetBuf.Length = sizeof (Buffer);
261 RetBuf.Pointer = Buffer;
263 /* Differentiate between a number and a name */
265 if ((Target[0] >= 0x30) && (Target[0] <= 0x39))
267 ObjPtr = AcpiDbGetPointer (Target);
268 if (!AcpiOsReadable (ObjPtr, 16))
270 AcpiOsPrintf ("Address %p is invalid in this address space\n", ObjPtr);
274 /* Decode the object type */
276 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjPtr))
278 case ACPI_DESC_TYPE_NAMED:
280 /* This is a namespace Node */
282 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_NAMESPACE_NODE)))
284 AcpiOsPrintf ("Cannot read entire Named object at address %p\n", ObjPtr);
292 case ACPI_DESC_TYPE_OPERAND:
294 /* This is a ACPI OPERAND OBJECT */
296 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_OPERAND_OBJECT)))
298 AcpiOsPrintf ("Cannot read entire ACPI object at address %p\n", ObjPtr);
302 AcpiUtDumpBuffer (ObjPtr, sizeof (ACPI_OPERAND_OBJECT), Display, ACPI_UINT32_MAX);
303 AcpiExDumpObjectDescriptor (ObjPtr, 1);
307 case ACPI_DESC_TYPE_PARSER:
309 /* This is a Parser Op object */
311 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_PARSE_OBJECT)))
313 AcpiOsPrintf ("Cannot read entire Parser object at address %p\n", ObjPtr);
317 AcpiUtDumpBuffer (ObjPtr, sizeof (ACPI_PARSE_OBJECT), Display, ACPI_UINT32_MAX);
318 AcpiDbDumpParserDescriptor ((ACPI_PARSE_OBJECT *) ObjPtr);
324 /* Is not a recognizeable object */
327 if (AcpiOsReadable (ObjPtr, 64))
332 /* Just dump some memory */
334 AcpiUtDumpBuffer (ObjPtr, Size, Display, ACPI_UINT32_MAX);
341 /* The parameter is a name string that must be resolved to a Named obj */
343 Node = AcpiDbLocalNsLookup (Target);
351 /* Now dump the Named obj */
353 Status = AcpiGetName (Node, ACPI_FULL_PATHNAME, &RetBuf);
354 if (ACPI_FAILURE (Status))
356 AcpiOsPrintf ("Could not convert name to pathname\n");
361 AcpiOsPrintf ("Object (%p) Pathname: %s\n", Node, (char *) RetBuf.Pointer);
364 if (!AcpiOsReadable (Node, sizeof (ACPI_NAMESPACE_NODE)))
366 AcpiOsPrintf ("Invalid Named object at address %p\n", Node);
370 AcpiUtDumpBuffer ((void *) Node, sizeof (ACPI_NAMESPACE_NODE), Display, ACPI_UINT32_MAX);
371 AcpiExDumpNode (Node, 1);
373 ObjDesc = AcpiNsGetAttachedObject (Node);
376 AcpiOsPrintf ("\nAttached Object (%p):\n", ObjDesc);
377 if (!AcpiOsReadable (ObjDesc, sizeof (ACPI_OPERAND_OBJECT)))
379 AcpiOsPrintf ("Invalid internal ACPI Object at address %p\n", ObjDesc);
383 AcpiUtDumpBuffer ((void *) ObjDesc, sizeof (ACPI_OPERAND_OBJECT), Display, ACPI_UINT32_MAX);
384 AcpiExDumpObjectDescriptor (ObjDesc, 1);
389 /*******************************************************************************
391 * FUNCTION: AcpiDbDecodeInternalObject
393 * PARAMETERS: ObjDesc - Object to be displayed
397 * DESCRIPTION: Short display of an internal object. Numbers and Strings.
399 ******************************************************************************/
402 AcpiDbDecodeInternalObject (
403 ACPI_OPERAND_OBJECT *ObjDesc)
410 AcpiOsPrintf (" Uninitialized");
414 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND)
416 AcpiOsPrintf (" %p", ObjDesc);
420 AcpiOsPrintf (" %s", AcpiUtGetObjectTypeName (ObjDesc));
422 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
424 case ACPI_TYPE_INTEGER:
426 AcpiOsPrintf (" %8.8X%8.8X", ACPI_HIDWORD (ObjDesc->Integer.Value),
427 ACPI_LODWORD (ObjDesc->Integer.Value));
431 case ACPI_TYPE_STRING:
433 AcpiOsPrintf ("(%d) \"%.24s",
434 ObjDesc->String.Length, ObjDesc->String.Pointer);
436 if (ObjDesc->String.Length > 24)
438 AcpiOsPrintf ("...");
447 case ACPI_TYPE_BUFFER:
449 AcpiOsPrintf ("(%d)", ObjDesc->Buffer.Length);
450 for (i = 0; (i < 8) && (i < ObjDesc->Buffer.Length); i++)
452 AcpiOsPrintf (" %2.2X", ObjDesc->Buffer.Pointer[i]);
459 AcpiOsPrintf (" %p", ObjDesc);
465 /*******************************************************************************
467 * FUNCTION: AcpiDbDecodeNode
469 * PARAMETERS: Node - Object to be displayed
473 * DESCRIPTION: Short display of a namespace node
475 ******************************************************************************/
479 ACPI_NAMESPACE_NODE *Node)
483 AcpiOsPrintf ("<Node> Name %4.4s",
486 if (Node->Flags & ANOBJ_METHOD_ARG)
488 AcpiOsPrintf (" [Method Arg]");
490 if (Node->Flags & ANOBJ_METHOD_LOCAL)
492 AcpiOsPrintf (" [Method Local]");
495 AcpiDbDecodeInternalObject (AcpiNsGetAttachedObject (Node));
499 /*******************************************************************************
501 * FUNCTION: AcpiDbDisplayInternalObject
503 * PARAMETERS: ObjDesc - Object to be displayed
504 * WalkState - Current walk state
508 * DESCRIPTION: Short display of an internal object
510 ******************************************************************************/
513 AcpiDbDisplayInternalObject (
514 ACPI_OPERAND_OBJECT *ObjDesc,
515 ACPI_WALK_STATE *WalkState)
520 AcpiOsPrintf ("%p ", ObjDesc);
524 AcpiOsPrintf ("<NullObj>\n");
528 /* Decode the object type */
530 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc))
532 case ACPI_DESC_TYPE_PARSER:
534 AcpiOsPrintf ("<Parser> ");
538 case ACPI_DESC_TYPE_NAMED:
540 AcpiDbDecodeNode ((ACPI_NAMESPACE_NODE *) ObjDesc);
544 case ACPI_DESC_TYPE_OPERAND:
546 Type = ACPI_GET_OBJECT_TYPE (ObjDesc);
547 if (Type > ACPI_TYPE_LOCAL_MAX)
549 AcpiOsPrintf (" Type %X [Invalid Type]", (UINT32) Type);
553 /* Decode the ACPI object type */
555 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
557 case ACPI_TYPE_LOCAL_REFERENCE:
559 switch (ObjDesc->Reference.Opcode)
563 AcpiOsPrintf ("[Local%d] ", ObjDesc->Reference.Offset);
566 ObjDesc = WalkState->LocalVariables[ObjDesc->Reference.Offset].Object;
567 AcpiOsPrintf ("%p", ObjDesc);
568 AcpiDbDecodeInternalObject (ObjDesc);
575 AcpiOsPrintf ("[Arg%d] ", ObjDesc->Reference.Offset);
578 ObjDesc = WalkState->Arguments[ObjDesc->Reference.Offset].Object;
579 AcpiOsPrintf ("%p", ObjDesc);
580 AcpiDbDecodeInternalObject (ObjDesc);
587 AcpiOsPrintf ("[Debug] ");
593 AcpiOsPrintf ("[Index] ");
594 if (!ObjDesc->Reference.Where)
596 AcpiOsPrintf ("Uninitialized WHERE ptr");
600 AcpiDbDecodeInternalObject (*(ObjDesc->Reference.Where));
607 AcpiOsPrintf ("[RefOf] ");
609 /* Reference can be to a Node or an Operand object */
611 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc->Reference.Object))
613 case ACPI_DESC_TYPE_NAMED:
614 AcpiDbDecodeNode (ObjDesc->Reference.Object);
617 case ACPI_DESC_TYPE_OPERAND:
618 AcpiDbDecodeInternalObject (ObjDesc->Reference.Object);
629 AcpiOsPrintf ("Unknown Reference opcode %X\n",
630 ObjDesc->Reference.Opcode);
637 AcpiOsPrintf ("<Obj> ");
639 AcpiDbDecodeInternalObject (ObjDesc);
647 AcpiOsPrintf ("<Not a valid ACPI Object Descriptor> ");
655 /*******************************************************************************
657 * FUNCTION: AcpiDbDisplayMethodInfo
659 * PARAMETERS: StartOp - Root of the control method parse tree
663 * DESCRIPTION: Display information about the current method
665 ******************************************************************************/
668 AcpiDbDisplayMethodInfo (
669 ACPI_PARSE_OBJECT *StartOp)
671 ACPI_WALK_STATE *WalkState;
672 ACPI_OPERAND_OBJECT *ObjDesc;
673 ACPI_NAMESPACE_NODE *Node;
674 ACPI_PARSE_OBJECT *RootOp;
675 ACPI_PARSE_OBJECT *Op;
676 const ACPI_OPCODE_INFO *OpInfo;
678 UINT32 NumOperands = 0;
679 UINT32 NumOperators = 0;
680 UINT32 NumRemainingOps = 0;
681 UINT32 NumRemainingOperands = 0;
682 UINT32 NumRemainingOperators = 0;
685 BOOLEAN CountRemaining = FALSE;
688 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
691 AcpiOsPrintf ("There is no method currently executing\n");
695 ObjDesc = WalkState->MethodDesc;
696 Node = WalkState->MethodNode;
698 NumArgs = ObjDesc->Method.ParamCount;
699 Concurrency = ObjDesc->Method.Concurrency;
701 AcpiOsPrintf ("Currently executing control method is [%4.4s]\n", Node->Name.Ascii);
702 AcpiOsPrintf ("%X arguments, max concurrency = %X\n", NumArgs, Concurrency);
706 while (RootOp->Common.Parent)
708 RootOp = RootOp->Common.Parent;
717 CountRemaining = TRUE;
726 /* Decode the opcode */
728 OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
729 switch (OpInfo->Class)
731 case AML_CLASS_ARGUMENT:
734 NumRemainingOperands++;
740 case AML_CLASS_UNKNOWN:
741 /* Bad opcode or ASCII character */
748 NumRemainingOperators++;
755 Op = AcpiPsGetDepthNext (StartOp, Op);
758 AcpiOsPrintf ("Method contains: %X AML Opcodes - %X Operators, %X Operands\n",
759 NumOps, NumOperators, NumOperands);
761 AcpiOsPrintf ("Remaining to execute: %X AML Opcodes - %X Operators, %X Operands\n",
762 NumRemainingOps, NumRemainingOperators, NumRemainingOperands);
766 /*******************************************************************************
768 * FUNCTION: AcpiDbDisplayLocals
774 * DESCRIPTION: Display all locals for the currently running control method
776 ******************************************************************************/
779 AcpiDbDisplayLocals (void)
782 ACPI_WALK_STATE *WalkState;
783 ACPI_OPERAND_OBJECT *ObjDesc;
784 ACPI_NAMESPACE_NODE *Node;
787 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
790 AcpiOsPrintf ("There is no method currently executing\n");
794 ObjDesc = WalkState->MethodDesc;
795 Node = WalkState->MethodNode;
798 AcpiOsPrintf ("No method node (Executing subtree for buffer or opregion)\n");
802 AcpiOsPrintf ("Local Variables for method [%4.4s]:\n", Node->Name.Ascii);
804 for (i = 0; i < ACPI_METHOD_NUM_LOCALS; i++)
806 ObjDesc = WalkState->LocalVariables[i].Object;
807 AcpiOsPrintf ("Local%d: ", i);
808 AcpiDbDisplayInternalObject (ObjDesc, WalkState);
813 /*******************************************************************************
815 * FUNCTION: AcpiDbDisplayArguments
821 * DESCRIPTION: Display all arguments for the currently running control method
823 ******************************************************************************/
826 AcpiDbDisplayArguments (void)
829 ACPI_WALK_STATE *WalkState;
830 ACPI_OPERAND_OBJECT *ObjDesc;
833 ACPI_NAMESPACE_NODE *Node;
836 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
839 AcpiOsPrintf ("There is no method currently executing\n");
843 ObjDesc = WalkState->MethodDesc;
844 Node = WalkState->MethodNode;
847 AcpiOsPrintf ("No method node (Executing subtree for buffer or opregion)\n");
851 NumArgs = ObjDesc->Method.ParamCount;
852 Concurrency = ObjDesc->Method.Concurrency;
854 AcpiOsPrintf ("Method [%4.4s] has %X arguments, max concurrency = %X\n",
855 Node->Name.Ascii, NumArgs, Concurrency);
857 for (i = 0; i < ACPI_METHOD_NUM_ARGS; i++)
859 ObjDesc = WalkState->Arguments[i].Object;
860 AcpiOsPrintf ("Arg%d: ", i);
861 AcpiDbDisplayInternalObject (ObjDesc, WalkState);
866 /*******************************************************************************
868 * FUNCTION: AcpiDbDisplayResults
874 * DESCRIPTION: Display current contents of a method result stack
876 ******************************************************************************/
879 AcpiDbDisplayResults (void)
882 ACPI_WALK_STATE *WalkState;
883 ACPI_OPERAND_OBJECT *ObjDesc;
884 UINT32 NumResults = 0;
885 ACPI_NAMESPACE_NODE *Node;
888 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
891 AcpiOsPrintf ("There is no method currently executing\n");
895 ObjDesc = WalkState->MethodDesc;
896 Node = WalkState->MethodNode;
898 if (WalkState->Results)
900 NumResults = WalkState->Results->Results.NumResults;
903 AcpiOsPrintf ("Method [%4.4s] has %X stacked result objects\n",
904 Node->Name.Ascii, NumResults);
906 for (i = 0; i < NumResults; i++)
908 ObjDesc = WalkState->Results->Results.ObjDesc[i];
909 AcpiOsPrintf ("Result%d: ", i);
910 AcpiDbDisplayInternalObject (ObjDesc, WalkState);
915 /*******************************************************************************
917 * FUNCTION: AcpiDbDisplayCallingTree
923 * DESCRIPTION: Display current calling tree of nested control methods
925 ******************************************************************************/
928 AcpiDbDisplayCallingTree (void)
930 ACPI_WALK_STATE *WalkState;
931 ACPI_NAMESPACE_NODE *Node;
934 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
937 AcpiOsPrintf ("There is no method currently executing\n");
941 Node = WalkState->MethodNode;
942 AcpiOsPrintf ("Current Control Method Call Tree\n");
946 Node = WalkState->MethodNode;
948 AcpiOsPrintf (" [%4.4s]\n", Node->Name.Ascii);
950 WalkState = WalkState->Next;
955 /*******************************************************************************
957 * FUNCTION: AcpiDbDisplayResultObject
959 * PARAMETERS: ObjDesc - Object to be displayed
960 * WalkState - Current walk state
964 * DESCRIPTION: Display the result of an AML opcode
966 * Note: Curently only displays the result object if we are single stepping.
967 * However, this output may be useful in other contexts and could be enabled
968 * to do so if needed.
970 ******************************************************************************/
973 AcpiDbDisplayResultObject (
974 ACPI_OPERAND_OBJECT *ObjDesc,
975 ACPI_WALK_STATE *WalkState)
978 /* Only display if single stepping */
980 if (!AcpiGbl_CmSingleStep)
985 AcpiOsPrintf ("ResultObj: ");
986 AcpiDbDisplayInternalObject (ObjDesc, WalkState);
991 /*******************************************************************************
993 * FUNCTION: AcpiDbDisplayArgumentObject
995 * PARAMETERS: ObjDesc - Object to be displayed
996 * WalkState - Current walk state
1000 * DESCRIPTION: Display the result of an AML opcode
1002 ******************************************************************************/
1005 AcpiDbDisplayArgumentObject (
1006 ACPI_OPERAND_OBJECT *ObjDesc,
1007 ACPI_WALK_STATE *WalkState)
1010 if (!AcpiGbl_CmSingleStep)
1015 AcpiOsPrintf ("ArgObj: ");
1016 AcpiDbDisplayInternalObject (ObjDesc, WalkState);
1020 /*******************************************************************************
1022 * FUNCTION: AcpiDbDisplayGpes
1028 * DESCRIPTION: Display the GPE structures
1030 ******************************************************************************/
1033 AcpiDbDisplayGpes (void)
1035 ACPI_GPE_BLOCK_INFO *GpeBlock;
1039 GpeBlock = AcpiGbl_GpeBlockListHead;
1042 AcpiOsPrintf ("Block %d - %p\n", i, GpeBlock);
1043 AcpiOsPrintf (" Registers: %d\n", GpeBlock->RegisterCount);
1044 AcpiOsPrintf (" GPE range: %d to %d\n", GpeBlock->BlockBaseNumber,
1045 GpeBlock->BlockBaseNumber + (GpeBlock->RegisterCount * 8) -1);
1046 AcpiOsPrintf (" RegisterInfo: %p\n", GpeBlock->RegisterInfo);
1047 AcpiOsPrintf (" EventInfo: %p\n", GpeBlock->EventInfo);
1050 GpeBlock = GpeBlock->Next;
1055 #endif /* ACPI_DEBUGGER */