ACPI_REPORT_ERROR (("Could not allocate table memory for [%4.4s] length %X\n", 
ACPI_REPORT_ERROR (( "Could not allocate table memory for [%4.4s] length %X\n", 
acpi_tb_get_this_table (	struct acpi_pointer             *address,	struct acpi_table_header        *header,	struct acpi_table_desc          *table_info){	struct acpi_table_header        *full_table = NULL;	u8                              allocation;	acpi_status                     status = AE_OK;	ACPI_FUNCTION_TRACE ("tb_get_this_table");	/*	 * Flags contains the current processor mode (Virtual or Physical addressing)	 * The pointer_type is either Logical or Physical	 */	switch (address->pointer_type) {	case ACPI_PHYSMODE_PHYSPTR:	case ACPI_LOGMODE_LOGPTR:		/* Pointer matches processor mode, copy the table to a new buffer */		full_table = ACPI_MEM_ALLOCATE (header->length);		if (!full_table) {			ACPI_REPORT_ERROR (("Could not allocate table memory for [%4.4s] length %X\n",				header->signature, header->length));			return_ACPI_STATUS (AE_NO_MEMORY);		}		/* Copy the entire table (including header) to the local buffer */		ACPI_MEMCPY (full_table, address->pointer.logical, header->length);		/* Save allocation type */		allocation = ACPI_MEM_ALLOCATED;		break;	case ACPI_LOGMODE_PHYSPTR:		/*		 * Just map the table's physical memory		 * into our address space.		 */		status = acpi_os_map_memory (address->pointer.physical, (acpi_size) header->length,				  (void *) &full_table);		if (ACPI_FAILURE (status)) {			ACPI_REPORT_ERROR (("Could not map memory for table [%4.4s] at %8.8X%8.8X for length %X\n",				header->signature,				ACPI_FORMAT_UINT64 (address->pointer.physical), header->length));			return (status);		}		/* Save allocation type */		allocation = ACPI_MEM_MAPPED;		break;	default:		ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Invalid address flags %X\n",			address->pointer_type));		return_ACPI_STATUS (AE_BAD_PARAMETER);	}	/*	 * Validate checksum for _most_ tables,	 * even the ones whose signature we don't recognize	 */	if (table_info->type != ACPI_TABLE_FACS) {		status = acpi_tb_verify_table_checksum (full_table);#if (!ACPI_CHECKSUM_ABORT)		if (ACPI_FAILURE (status)) {			/* Ignore the error if configuration says so */			status = AE_OK;		}#endif	}	/* Return values */	table_info->pointer     = full_table;	table_info->length      = (acpi_size) header->length;	table_info->allocation  = allocation;	ACPI_DEBUG_PRINT ((ACPI_DB_INFO,		"Found table [%4.4s] at %8.8X%8.8X, mapped/copied to %p\n",		full_table->signature,		ACPI_FORMAT_UINT64 (address->pointer.physical), full_table));	return_ACPI_STATUS (status);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/tbget.c/clean/drivers/acpi/tables/tbget.c