| .. | .. | 
|---|
| 3 | 3 | * | 
|---|
| 4 | 4 | * Module Name: tbxface - ACPI table-oriented external interfaces | 
|---|
| 5 | 5 | * | 
|---|
| 6 |  | - * Copyright (C) 2000 - 2018, Intel Corp. | 
|---|
|  | 6 | + * Copyright (C) 2000 - 2020, Intel Corp. | 
|---|
| 7 | 7 | * | 
|---|
| 8 | 8 | *****************************************************************************/ | 
|---|
| 9 | 9 |  | 
|---|
| .. | .. | 
|---|
| 108 | 108 | /* | 
|---|
| 109 | 109 | * Get the root table (RSDT or XSDT) and extract all entries to the local | 
|---|
| 110 | 110 | * Root Table Array. This array contains the information of the RSDT/XSDT | 
|---|
| 111 |  | -	 * in a common, more useable format. | 
|---|
|  | 111 | +	 * in a common, more usable format. | 
|---|
| 112 | 112 | */ | 
|---|
| 113 | 113 | status = acpi_tb_parse_root_table(rsdp_address); | 
|---|
| 114 | 114 | return_ACPI_STATUS(status); | 
|---|
| .. | .. | 
|---|
| 169 | 169 | if (!acpi_gbl_enable_table_validation) { | 
|---|
| 170 | 170 | /* | 
|---|
| 171 | 171 | * Now it's safe to do full table validation. We can do deferred | 
|---|
| 172 |  | -		 * table initilization here once the flag is set. | 
|---|
|  | 172 | +		 * table initialization here once the flag is set. | 
|---|
| 173 | 173 | */ | 
|---|
| 174 | 174 | acpi_gbl_enable_table_validation = TRUE; | 
|---|
| 175 | 175 | for (i = 0; i < acpi_gbl_root_table_list.current_table_count; | 
|---|
| .. | .. | 
|---|
| 202 | 202 | * | 
|---|
| 203 | 203 | * PARAMETERS:  signature           - ACPI signature of needed table | 
|---|
| 204 | 204 | *              instance            - Which instance (for SSDTs) | 
|---|
| 205 |  | - *              out_table_header    - The pointer to the table header to fill | 
|---|
|  | 205 | + *              out_table_header    - The pointer to the where the table header | 
|---|
|  | 206 | + *                                    is returned | 
|---|
| 206 | 207 | * | 
|---|
| 207 |  | - * RETURN:      Status and pointer to mapped table header | 
|---|
|  | 208 | + * RETURN:      Status and a copy of the table header | 
|---|
| 208 | 209 | * | 
|---|
| 209 |  | - * DESCRIPTION: Finds an ACPI table header. | 
|---|
| 210 |  | - * | 
|---|
| 211 |  | - * NOTE:        Caller is responsible in unmapping the header with | 
|---|
| 212 |  | - *              acpi_os_unmap_memory | 
|---|
|  | 210 | + * DESCRIPTION: Finds and returns an ACPI table header. Caller provides the | 
|---|
|  | 211 | + *              memory where a copy of the header is to be returned | 
|---|
|  | 212 | + *              (fixed length). | 
|---|
| 213 | 213 | * | 
|---|
| 214 | 214 | ******************************************************************************/ | 
|---|
| 215 | 215 | acpi_status | 
|---|
| .. | .. | 
|---|
| 230 | 230 |  | 
|---|
| 231 | 231 | for (i = 0, j = 0; i < acpi_gbl_root_table_list.current_table_count; | 
|---|
| 232 | 232 | i++) { | 
|---|
| 233 |  | -		if (!ACPI_COMPARE_NAME | 
|---|
|  | 233 | +		if (!ACPI_COMPARE_NAMESEG | 
|---|
| 234 | 234 | (&(acpi_gbl_root_table_list.tables[i].signature), | 
|---|
| 235 | 235 | signature)) { | 
|---|
| 236 | 236 | continue; | 
|---|
| .. | .. | 
|---|
| 323 | 323 | i++) { | 
|---|
| 324 | 324 | table_desc = &acpi_gbl_root_table_list.tables[i]; | 
|---|
| 325 | 325 |  | 
|---|
| 326 |  | -		if (!ACPI_COMPARE_NAME(&table_desc->signature, signature)) { | 
|---|
|  | 326 | +		if (!ACPI_COMPARE_NAMESEG(&table_desc->signature, signature)) { | 
|---|
| 327 | 327 | continue; | 
|---|
| 328 | 328 | } | 
|---|
| 329 | 329 |  | 
|---|