ACPI_MEMSET (acpi_gbl_memory_lists, 0, sizeof (struct acpi_memory_list) * ACPI_NUM_MEM_LISTS);  acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].link_offset      = (u16) ACPI_PTR_DIFF (&(((union acpi_generic_state *) NULL)->common.next), NULL); acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].link_offset     = (u16) ACPI_PTR_DIFF (&(((union acpi_parse_object *) NULL)->common.next), NULL); acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].link_offset = (u16) ACPI_PTR_DIFF (&(((union acpi_parse_object *) NULL)->common.next), NULL); acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].link_offset    = (u16) ACPI_PTR_DIFF (&(((union acpi_operand_object *) NULL)->cache.next), NULL); acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].link_offset       = (u16) ACPI_PTR_DIFF (&(((struct acpi_walk_state *) NULL)->next), NULL);  acpi_gbl_memory_lists[ACPI_MEM_LIST_NSNODE].object_size     = sizeof (struct acpi_namespace_node); acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].object_size      = sizeof (union acpi_generic_state); acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].object_size     = sizeof (struct acpi_parse_obj_common); acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].object_size = sizeof (struct acpi_parse_obj_named); acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].object_size    = sizeof (union acpi_operand_object); acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].object_size       = sizeof (struct acpi_walk_state);  acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].max_cache_depth  = ACPI_MAX_STATE_CACHE_DEPTH; acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].max_cache_depth = ACPI_MAX_PARSE_CACHE_DEPTH; acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].max_cache_depth = ACPI_MAX_EXTPARSE_CACHE_DEPTH; acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].max_cache_depth = ACPI_MAX_OBJECT_CACHE_DEPTH; acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].max_cache_depth   = ACPI_MAX_WALK_CACHE_DEPTH;  ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_GLOBAL].list_name    = "Global Memory Allocation"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_NSNODE].list_name    = "Namespace Nodes"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].list_name     = "State Object Cache"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].list_name    = "Parse Node Cache"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].list_name = "Extended Parse Node Cache"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].list_name   = "Operand Object Cache"); ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].list_name      = "Tree Walk Node Cache"); 
status = acpi_ut_create_caches (); if (ACPI_FAILURE (status)) { return; } 
acpi_ut_init_globals (	void){	u32                             i;	ACPI_FUNCTION_TRACE ("ut_init_globals");	/* Memory allocation and cache lists */	ACPI_MEMSET (acpi_gbl_memory_lists, 0, sizeof (struct acpi_memory_list) * ACPI_NUM_MEM_LISTS);	acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].link_offset      = (u16) ACPI_PTR_DIFF (&(((union acpi_generic_state *) NULL)->common.next), NULL);	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].link_offset     = (u16) ACPI_PTR_DIFF (&(((union acpi_parse_object *) NULL)->common.next), NULL);	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].link_offset = (u16) ACPI_PTR_DIFF (&(((union acpi_parse_object *) NULL)->common.next), NULL);	acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].link_offset    = (u16) ACPI_PTR_DIFF (&(((union acpi_operand_object *) NULL)->cache.next), NULL);	acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].link_offset       = (u16) ACPI_PTR_DIFF (&(((struct acpi_walk_state *) NULL)->next), NULL);	acpi_gbl_memory_lists[ACPI_MEM_LIST_NSNODE].object_size     = sizeof (struct acpi_namespace_node);	acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].object_size      = sizeof (union acpi_generic_state);	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].object_size     = sizeof (struct acpi_parse_obj_common);	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].object_size = sizeof (struct acpi_parse_obj_named);	acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].object_size    = sizeof (union acpi_operand_object);	acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].object_size       = sizeof (struct acpi_walk_state);	acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].max_cache_depth  = ACPI_MAX_STATE_CACHE_DEPTH;	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].max_cache_depth = ACPI_MAX_PARSE_CACHE_DEPTH;	acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].max_cache_depth = ACPI_MAX_EXTPARSE_CACHE_DEPTH;	acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].max_cache_depth = ACPI_MAX_OBJECT_CACHE_DEPTH;	acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].max_cache_depth   = ACPI_MAX_WALK_CACHE_DEPTH;	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_GLOBAL].list_name    = "Global Memory Allocation");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_NSNODE].list_name    = "Namespace Nodes");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_STATE].list_name     = "State Object Cache");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE].list_name    = "Parse Node Cache");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_PSNODE_EXT].list_name = "Extended Parse Node Cache");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_OPERAND].list_name   = "Operand Object Cache");	ACPI_MEM_TRACKING (acpi_gbl_memory_lists[ACPI_MEM_LIST_WALK].list_name      = "Tree Walk Node Cache");	/* ACPI table structure */	for (i = 0; i < NUM_ACPI_TABLE_TYPES; i++)	{		acpi_gbl_table_lists[i].next        = NULL;		acpi_gbl_table_lists[i].count       = 0;	}	/* Mutex locked flags */	for (i = 0; i < NUM_MUTEX; i++)	{		acpi_gbl_mutex_info[i].mutex        = NULL;		acpi_gbl_mutex_info[i].owner_id     = ACPI_MUTEX_NOT_ACQUIRED;		acpi_gbl_mutex_info[i].use_count    = 0;	}	/* GPE support */	acpi_gbl_gpe_xrupt_list_head        = NULL;	acpi_gbl_gpe_fadt_blocks[0]         = NULL;	acpi_gbl_gpe_fadt_blocks[1]         = NULL;	/* Global notify handlers */	acpi_gbl_system_notify.handler      = NULL;	acpi_gbl_device_notify.handler      = NULL;	acpi_gbl_exception_handler          = NULL;	acpi_gbl_init_handler               = NULL;	/* Global "typed" ACPI table pointers */	acpi_gbl_RSDP                       = NULL;	acpi_gbl_XSDT                       = NULL;	acpi_gbl_FACS                       = NULL;	acpi_gbl_FADT                       = NULL;	acpi_gbl_DSDT                       = NULL;	/* Global Lock support */	acpi_gbl_global_lock_acquired       = FALSE;	acpi_gbl_global_lock_thread_count   = 0;	acpi_gbl_global_lock_handle         = 0;	/* Miscellaneous variables */	acpi_gbl_table_flags                = ACPI_PHYSICAL_POINTER;	acpi_gbl_rsdp_original_location     = 0;	acpi_gbl_cm_single_step             = FALSE;	acpi_gbl_db_terminate_threads       = FALSE;	acpi_gbl_shutdown                   = FALSE;	acpi_gbl_ns_lookup_count            = 0;	acpi_gbl_ps_find_count              = 0;	acpi_gbl_acpi_hardware_present      = TRUE;	acpi_gbl_next_table_owner_id        = ACPI_FIRST_TABLE_ID;	acpi_gbl_next_method_owner_id       = ACPI_FIRST_METHOD_ID;	acpi_gbl_debugger_configuration     = DEBUGGER_THREADING;	acpi_gbl_db_output_flags            = ACPI_DB_CONSOLE_OUTPUT;	/* Hardware oriented */	acpi_gbl_events_initialized         = FALSE;	acpi_gbl_system_awake_and_running   = TRUE;	/* Namespace */	acpi_gbl_root_node                  = NULL;	acpi_gbl_root_node_struct.name.integer = ACPI_ROOT_NAME;	acpi_gbl_root_node_struct.descriptor = ACPI_DESC_TYPE_NAMED;	acpi_gbl_root_node_struct.type      = ACPI_TYPE_DEVICE;	acpi_gbl_root_node_struct.child     = NULL;	acpi_gbl_root_node_struct.peer      = NULL;	acpi_gbl_root_node_struct.object    = NULL;	acpi_gbl_root_node_struct.flags     = ANOBJ_END_OF_PEER_LIST;#ifdef ACPI_DEBUG_OUTPUT	acpi_gbl_lowest_stack_pointer       = ACPI_SIZE_MAX;#endif	return_VOID;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/73459f73e5d1602c59ebec114fc45185521353c1/utglobal.c/buggy/drivers/acpi/utilities/utglobal.c