utglobal.c revision 69450
1/****************************************************************************** 2 * 3 * Module Name: cmglobal - Global variables for the ACPI subsystem 4 * $Revision: 110 $ 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999, Intel Corp. All rights 13 * reserved. 14 * 15 * 2. License 16 * 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 20 * property rights. 21 * 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 28 * 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; 37 * 38 * The above copyright and patent license is granted only if the following 39 * conditions are met: 40 * 41 * 3. Conditions 42 * 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. 54 * 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 65 * make. 66 * 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 71 * distribution. 72 * 73 * 3.4. Intel retains all right, title, and interest in and to the Original 74 * Intel Code. 75 * 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. 80 * 81 * 4. Disclaimer and Export Compliance 82 * 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 89 * PARTICULAR PURPOSE. 90 * 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 98 * LIMITED REMEDY. 99 * 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. 114 * 115 *****************************************************************************/ 116 117#define __CMGLOBAL_C__ 118#define DEFINE_ACPI_GLOBALS 119 120#include "acpi.h" 121#include "acevents.h" 122#include "acnamesp.h" 123#include "acinterp.h" 124 125 126#define _COMPONENT MISCELLANEOUS 127 MODULE_NAME ("cmglobal") 128 129 130/****************************************************************************** 131 * 132 * Static global variable initialization. 133 * 134 ******************************************************************************/ 135 136/* 137 * We want the debug switches statically initialized so they 138 * are already set when the debugger is entered. 139 */ 140 141/* Debug switch - level and trace mask */ 142 143#ifdef ACPI_DEBUG 144UINT32 AcpiDbgLevel = DEBUG_DEFAULT; 145#else 146UINT32 AcpiDbgLevel = NORMAL_DEFAULT; 147#endif 148 149/* Debug switch - layer (component) mask */ 150 151UINT32 AcpiDbgLayer = COMPONENT_DEFAULT; 152UINT32 AcpiGbl_NestingLevel = 0; 153 154 155/* Debugger globals */ 156 157BOOLEAN AcpiGbl_DbTerminateThreads = FALSE; 158BOOLEAN AcpiGbl_MethodExecuting = FALSE; 159 160/* System flags */ 161 162UINT32 AcpiGbl_SystemFlags = 0; 163UINT32 AcpiGbl_StartupFlags = 0; 164 165/* System starts unitialized! */ 166BOOLEAN AcpiGbl_Shutdown = TRUE; 167 168 169UINT8 AcpiGbl_DecodeTo8bit [8] = {1,2,4,8,16,32,64,128}; 170 171 172/****************************************************************************** 173 * 174 * Namespace globals 175 * 176 ******************************************************************************/ 177 178 179/* 180 * Names built-in to the interpreter 181 * 182 * Initial values are currently supported only for types String and Number. 183 * To avoid type punning, both are specified as strings in this table. 184 */ 185 186PREDEFINED_NAMES AcpiGbl_PreDefinedNames[] = 187{ 188 {"_GPE", INTERNAL_TYPE_DEF_ANY}, 189 {"_PR_", INTERNAL_TYPE_DEF_ANY}, 190 {"_SB_", INTERNAL_TYPE_DEF_ANY}, 191 {"_SI_", INTERNAL_TYPE_DEF_ANY}, 192 {"_TZ_", INTERNAL_TYPE_DEF_ANY}, 193 {"_REV", ACPI_TYPE_NUMBER, "2"}, 194 {"_OS_", ACPI_TYPE_STRING, ACPI_OS_NAME}, 195 {"_GL_", ACPI_TYPE_MUTEX, "0"}, 196 197 /* Table terminator */ 198 199 {NULL, ACPI_TYPE_ANY} 200}; 201 202 203/* 204 * Properties of the ACPI Object Types, both internal and external. 205 * 206 * Elements of AcpiNsProperties are bit significant 207 * and the table is indexed by values of ACPI_OBJECT_TYPE 208 */ 209 210UINT8 AcpiGbl_NsProperties[] = 211{ 212 NSP_NORMAL, /* 00 Any */ 213 NSP_NORMAL, /* 01 Number */ 214 NSP_NORMAL, /* 02 String */ 215 NSP_NORMAL, /* 03 Buffer */ 216 NSP_LOCAL, /* 04 Package */ 217 NSP_NORMAL, /* 05 FieldUnit */ 218 NSP_NEWSCOPE | NSP_LOCAL, /* 06 Device */ 219 NSP_LOCAL, /* 07 AcpiEvent */ 220 NSP_NEWSCOPE | NSP_LOCAL, /* 08 Method */ 221 NSP_LOCAL, /* 09 Mutex */ 222 NSP_LOCAL, /* 10 Region */ 223 NSP_NEWSCOPE | NSP_LOCAL, /* 11 Power */ 224 NSP_NEWSCOPE | NSP_LOCAL, /* 12 Processor */ 225 NSP_NEWSCOPE | NSP_LOCAL, /* 13 Thermal */ 226 NSP_NORMAL, /* 14 BufferField */ 227 NSP_NORMAL, /* 15 DdbHandle */ 228 NSP_NORMAL, /* 16 Debug Object */ 229 NSP_NORMAL, /* 17 DefField */ 230 NSP_NORMAL, /* 18 BankField */ 231 NSP_NORMAL, /* 19 IndexField */ 232 NSP_NORMAL, /* 20 Reference */ 233 NSP_NORMAL, /* 21 Alias */ 234 NSP_NORMAL, /* 22 Notify */ 235 NSP_NORMAL, /* 23 Address Handler */ 236 NSP_NEWSCOPE | NSP_LOCAL, /* 24 Resource */ 237 NSP_NORMAL, /* 25 DefFieldDefn */ 238 NSP_NORMAL, /* 26 BankFieldDefn */ 239 NSP_NORMAL, /* 27 IndexFieldDefn */ 240 NSP_NORMAL, /* 28 If */ 241 NSP_NORMAL, /* 29 Else */ 242 NSP_NORMAL, /* 30 While */ 243 NSP_NEWSCOPE, /* 31 Scope */ 244 NSP_LOCAL, /* 32 DefAny */ 245 NSP_NORMAL, /* 33 Method Arg */ 246 NSP_NORMAL, /* 34 Method Local */ 247 NSP_NORMAL, /* 35 Extra */ 248 NSP_NORMAL /* 36 Invalid */ 249}; 250 251 252/****************************************************************************** 253 * 254 * Table globals 255 * 256 * NOTE: This table includes ONLY the ACPI tables that the subsystem consumes. 257 * it is NOT an exhaustive list of all possible ACPI tables. All ACPI tables 258 * that are not used by the subsystem are simply ignored. 259 * 260 ******************************************************************************/ 261 262 263ACPI_TABLE_DESC AcpiGbl_AcpiTables[NUM_ACPI_TABLES]; 264 265 266ACPI_TABLE_SUPPORT AcpiGbl_AcpiTableData[NUM_ACPI_TABLES] = 267{ 268 /*********** Name, Signature, Signature size, How many allowed?, Supported? Global typed pointer */ 269 270 /* RSDP 0 */ {RSDP_NAME, RSDP_SIG, sizeof (RSDP_SIG)-1, ACPI_TABLE_SINGLE, AE_OK, NULL}, 271 /* DSDT 1 */ {DSDT_SIG, DSDT_SIG, sizeof (DSDT_SIG)-1, ACPI_TABLE_SINGLE, AE_OK, (void **) &AcpiGbl_DSDT}, 272 /* FADT 2 */ {FADT_SIG, FADT_SIG, sizeof (FADT_SIG)-1, ACPI_TABLE_SINGLE, AE_OK, (void **) &AcpiGbl_FADT}, 273 /* FACS 3 */ {FACS_SIG, FACS_SIG, sizeof (FACS_SIG)-1, ACPI_TABLE_SINGLE, AE_OK, (void **) &AcpiGbl_FACS}, 274 /* PSDT 4 */ {PSDT_SIG, PSDT_SIG, sizeof (PSDT_SIG)-1, ACPI_TABLE_MULTIPLE, AE_OK, NULL}, 275 /* SSDT 5 */ {SSDT_SIG, SSDT_SIG, sizeof (SSDT_SIG)-1, ACPI_TABLE_MULTIPLE, AE_OK, NULL}, 276 /* XSDT 6 */ {XSDT_SIG, XSDT_SIG, sizeof (RSDT_SIG)-1, ACPI_TABLE_SINGLE, AE_OK, NULL}, 277}; 278 279 280#ifdef ACPI_DEBUG 281 282/****************************************************************************** 283 * 284 * Strings and procedures used for debug only 285 * 286 ******************************************************************************/ 287 288NATIVE_CHAR *MsgAcpiErrorBreak = "*** Break on ACPI_ERROR ***\n"; 289 290 291/***************************************************************************** 292 * 293 * FUNCTION: AcpiCmGetMutexName 294 * 295 * PARAMETERS: None. 296 * 297 * RETURN: Status 298 * 299 * DESCRIPTION: Translate a mutex ID into a name string (Debug only) 300 * 301 ****************************************************************************/ 302 303NATIVE_CHAR * 304AcpiCmGetMutexName ( 305 UINT32 MutexId) 306{ 307 308 if (MutexId > MAX_MTX) 309 { 310 return ("Invalid Mutex ID"); 311 } 312 313 return (AcpiGbl_MutexNames[MutexId]); 314} 315 316 317/* 318 * Elements of AcpiGbl_NsTypeNames below must match 319 * one-to-one with values of ACPI_OBJECT_TYPE 320 * 321 * The type ACPI_TYPE_ANY (Untyped) is used as a "don't care" when searching; when 322 * stored in a table it really means that we have thus far seen no evidence to 323 * indicatewhat type is actually going to be stored for this entry. 324 */ 325 326static NATIVE_CHAR AcpiGbl_BadType[] = "UNDEFINED"; 327#define TYPE_NAME_LENGTH 9 /* Maximum length of each string */ 328 329static NATIVE_CHAR *AcpiGbl_NsTypeNames[] = /* printable names of ACPI types */ 330{ 331 /* 00 */ "Untyped", 332 /* 01 */ "Number", 333 /* 02 */ "String", 334 /* 03 */ "Buffer", 335 /* 04 */ "Package", 336 /* 05 */ "FieldUnit", 337 /* 06 */ "Device", 338 /* 07 */ "Event", 339 /* 08 */ "Method", 340 /* 09 */ "Mutex", 341 /* 10 */ "Region", 342 /* 11 */ "Power", 343 /* 12 */ "Processor", 344 /* 13 */ "Thermal", 345 /* 14 */ "BufferFld", 346 /* 15 */ "DdbHandle", 347 /* 16 */ "DebugObj", 348 /* 17 */ "DefField", 349 /* 18 */ "BnkField", 350 /* 19 */ "IdxField", 351 /* 20 */ "Reference", 352 /* 21 */ "Alias", 353 /* 22 */ "Notify", 354 /* 23 */ "AddrHndlr", 355 /* 24 */ "Resource", 356 /* 25 */ "DefFldDfn", 357 /* 26 */ "BnkFldDfn", 358 /* 27 */ "IdxFldDfn", 359 /* 28 */ "If", 360 /* 29 */ "Else", 361 /* 30 */ "While", 362 /* 31 */ "Scope", 363 /* 32 */ "DefAny", 364 /* 33 */ "MethodArg", 365 /* 34 */ "MethodLcl", 366 /* 35 */ "Extra", 367 /* 36 */ "Invalid" 368}; 369 370 371/***************************************************************************** 372 * 373 * FUNCTION: AcpiCmGetTypeName 374 * 375 * PARAMETERS: None. 376 * 377 * RETURN: Status 378 * 379 * DESCRIPTION: Translate a Type ID into a name string (Debug only) 380 * 381 ****************************************************************************/ 382 383NATIVE_CHAR * 384AcpiCmGetTypeName ( 385 UINT32 Type) 386{ 387 388 if (Type > INTERNAL_TYPE_INVALID) 389 { 390 return (AcpiGbl_BadType); 391 } 392 393 return (AcpiGbl_NsTypeNames[Type]); 394} 395 396#endif 397 398 399/***************************************************************************** 400 * 401 * FUNCTION: AcpiCmValidObjectType 402 * 403 * PARAMETERS: None. 404 * 405 * RETURN: TRUE if valid object type 406 * 407 * DESCRIPTION: Validate an object type 408 * 409 ****************************************************************************/ 410 411BOOLEAN 412AcpiCmValidObjectType ( 413 UINT32 Type) 414{ 415 416 if (Type > ACPI_TYPE_MAX) 417 { 418 if ((Type < INTERNAL_TYPE_BEGIN) || 419 (Type > INTERNAL_TYPE_MAX)) 420 { 421 return (FALSE); 422 } 423 } 424 425 return (TRUE); 426} 427 428 429/***************************************************************************** 430 * 431 * FUNCTION: AcpiCmFormatException 432 * 433 * PARAMETERS: Status - Acpi status to be formatted 434 * 435 * RETURN: Formatted status string 436 * 437 * DESCRIPTION: Convert an ACPI exception to a string 438 * 439 ****************************************************************************/ 440 441NATIVE_CHAR * 442AcpiCmFormatException ( 443 ACPI_STATUS Status) 444{ 445 NATIVE_CHAR *Exception = "UNKNOWN_STATUS"; 446 ACPI_STATUS SubStatus; 447 448 449 SubStatus = (Status & ~AE_CODE_MASK); 450 451 452 switch (Status & AE_CODE_MASK) 453 { 454 case AE_CODE_ENVIRONMENTAL: 455 456 if (SubStatus <= AE_CODE_ENV_MAX) 457 { 458 Exception = AcpiGbl_ExceptionNames_Env [SubStatus]; 459 } 460 break; 461 462 case AE_CODE_PROGRAMMER: 463 464 if (SubStatus <= AE_CODE_PGM_MAX) 465 { 466 Exception = AcpiGbl_ExceptionNames_Pgm [SubStatus -1]; 467 } 468 break; 469 470 case AE_CODE_ACPI_TABLES: 471 472 if (SubStatus <= AE_CODE_TBL_MAX) 473 { 474 Exception = AcpiGbl_ExceptionNames_Tbl [SubStatus -1]; 475 } 476 break; 477 478 case AE_CODE_AML: 479 480 if (SubStatus <= AE_CODE_AML_MAX) 481 { 482 Exception = AcpiGbl_ExceptionNames_Aml [SubStatus -1]; 483 } 484 break; 485 486 case AE_CODE_CONTROL: 487 488 if (SubStatus <= AE_CODE_CTRL_MAX) 489 { 490 Exception = AcpiGbl_ExceptionNames_Ctrl [SubStatus -1]; 491 } 492 break; 493 494 default: 495 break; 496 } 497 498 499 return (Exception); 500} 501 502 503/**************************************************************************** 504 * 505 * FUNCTION: AcpiCmAllocateOwnerId 506 * 507 * PARAMETERS: IdType - Type of ID (method or table) 508 * 509 * DESCRIPTION: Allocate a table or method owner id 510 * 511 ***************************************************************************/ 512 513ACPI_OWNER_ID 514AcpiCmAllocateOwnerId ( 515 UINT32 IdType) 516{ 517 ACPI_OWNER_ID OwnerId = 0xFFFF; 518 519 520 FUNCTION_TRACE ("CmAllocateOwnerId"); 521 522 523 AcpiCmAcquireMutex (ACPI_MTX_CACHES); 524 525 switch (IdType) 526 { 527 case OWNER_TYPE_TABLE: 528 529 OwnerId = AcpiGbl_NextTableOwnerId; 530 AcpiGbl_NextTableOwnerId++; 531 532 if (AcpiGbl_NextTableOwnerId == FIRST_METHOD_ID) 533 { 534 AcpiGbl_NextTableOwnerId = FIRST_TABLE_ID; 535 } 536 break; 537 538 539 case OWNER_TYPE_METHOD: 540 541 OwnerId = AcpiGbl_NextMethodOwnerId; 542 AcpiGbl_NextMethodOwnerId++; 543 544 if (AcpiGbl_NextMethodOwnerId == FIRST_TABLE_ID) 545 { 546 AcpiGbl_NextMethodOwnerId = FIRST_METHOD_ID; 547 } 548 break; 549 } 550 551 552 AcpiCmReleaseMutex (ACPI_MTX_CACHES); 553 554 return_VALUE (OwnerId); 555} 556 557 558/**************************************************************************** 559 * 560 * FUNCTION: AcpiCmInitGlobals 561 * 562 * PARAMETERS: none 563 * 564 * DESCRIPTION: Init library globals. All globals that require specific 565 * initialization should be initialized here! 566 * 567 ***************************************************************************/ 568 569void 570AcpiCmInitGlobals ( 571 void) 572{ 573 UINT32 i; 574 575 576 FUNCTION_TRACE ("CmInitGlobals"); 577 578 579 /* ACPI table structure */ 580 581 for (i = 0; i < NUM_ACPI_TABLES; i++) 582 { 583 AcpiGbl_AcpiTables[i].Prev = &AcpiGbl_AcpiTables[i]; 584 AcpiGbl_AcpiTables[i].Next = &AcpiGbl_AcpiTables[i]; 585 AcpiGbl_AcpiTables[i].Pointer = NULL; 586 AcpiGbl_AcpiTables[i].Length = 0; 587 AcpiGbl_AcpiTables[i].Allocation = ACPI_MEM_NOT_ALLOCATED; 588 AcpiGbl_AcpiTables[i].Count = 0; 589 } 590 591 592 /* Address Space handler array */ 593 594 for (i = 0; i < ACPI_NUM_ADDRESS_SPACES; i++) 595 { 596 AcpiGbl_AddressSpaces[i].Handler = NULL; 597 AcpiGbl_AddressSpaces[i].Context = NULL; 598 } 599 600 /* Mutex locked flags */ 601 602 for (i = 0; i < NUM_MTX; i++) 603 { 604 AcpiGbl_AcpiMutexInfo[i].Mutex = NULL; 605 AcpiGbl_AcpiMutexInfo[i].Locked = FALSE; 606 AcpiGbl_AcpiMutexInfo[i].UseCount = 0; 607 } 608 609 /* Global notify handlers */ 610 611 AcpiGbl_SysNotify.Handler = NULL; 612 AcpiGbl_DrvNotify.Handler = NULL; 613 614 /* Global "typed" ACPI table pointers */ 615 616 AcpiGbl_RSDP = NULL; 617 AcpiGbl_XSDT = NULL; 618 AcpiGbl_FACS = NULL; 619 AcpiGbl_FADT = NULL; 620 AcpiGbl_DSDT = NULL; 621 622 623 /* Global Lock support */ 624 625 AcpiGbl_GlobalLockAcquired = FALSE; 626 AcpiGbl_GlobalLockThreadCount = 0; 627 628 /* Miscellaneous variables */ 629 630 AcpiGbl_SystemFlags = 0; 631 AcpiGbl_StartupFlags = 0; 632 AcpiGbl_GlobalLockSet = FALSE; 633 AcpiGbl_RsdpOriginalLocation = 0; 634 AcpiGbl_CmSingleStep = FALSE; 635 AcpiGbl_DbTerminateThreads = FALSE; 636 AcpiGbl_Shutdown = FALSE; 637 AcpiGbl_NsLookupCount = 0; 638 AcpiGbl_PsFindCount = 0; 639 AcpiGbl_AcpiHardwarePresent = TRUE; 640 AcpiGbl_NextTableOwnerId = FIRST_TABLE_ID; 641 AcpiGbl_NextMethodOwnerId = FIRST_METHOD_ID; 642 AcpiGbl_DebuggerConfiguration = DEBUGGER_THREADING; 643 644 /* Cache of small "state" objects */ 645 646 AcpiGbl_GenericStateCache = NULL; 647 AcpiGbl_GenericStateCacheDepth = 0; 648 AcpiGbl_StateCacheRequests = 0; 649 AcpiGbl_StateCacheHits = 0; 650 651 AcpiGbl_ParseCache = NULL; 652 AcpiGbl_ParseCacheDepth = 0; 653 AcpiGbl_ParseCacheRequests = 0; 654 AcpiGbl_ParseCacheHits = 0; 655 656 AcpiGbl_ExtParseCache = NULL; 657 AcpiGbl_ExtParseCacheDepth = 0; 658 AcpiGbl_ExtParseCacheRequests = 0; 659 AcpiGbl_ExtParseCacheHits = 0; 660 661 AcpiGbl_ObjectCache = NULL; 662 AcpiGbl_ObjectCacheDepth = 0; 663 AcpiGbl_ObjectCacheRequests = 0; 664 AcpiGbl_ObjectCacheHits = 0; 665 666 AcpiGbl_WalkStateCache = NULL; 667 AcpiGbl_WalkStateCacheDepth = 0; 668 AcpiGbl_WalkStateCacheRequests = 0; 669 AcpiGbl_WalkStateCacheHits = 0; 670 671 /* Hardware oriented */ 672 673 AcpiGbl_Gpe0EnableRegisterSave = NULL; 674 AcpiGbl_Gpe1EnableRegisterSave = NULL; 675 AcpiGbl_OriginalMode = SYS_MODE_UNKNOWN; /* original ACPI/legacy mode */ 676 AcpiGbl_GpeRegisters = NULL; 677 AcpiGbl_GpeInfo = NULL; 678 679 /* Namespace */ 680 681 AcpiGbl_RootNode = NULL; 682 683 AcpiGbl_RootNodeStruct.Name = ACPI_ROOT_NAME; 684 AcpiGbl_RootNodeStruct.DataType = ACPI_DESC_TYPE_NAMED; 685 AcpiGbl_RootNodeStruct.Type = ACPI_TYPE_ANY; 686 AcpiGbl_RootNodeStruct.Child = NULL; 687 AcpiGbl_RootNodeStruct.Peer = NULL; 688 AcpiGbl_RootNodeStruct.Object = NULL; 689 AcpiGbl_RootNodeStruct.Flags = ANOBJ_END_OF_PEER_LIST; 690 691 /* Memory allocation metrics - compiled out in non-debug mode. */ 692 693 INITIALIZE_ALLOCATION_METRICS(); 694 695 return_VOID; 696} 697 698 699