mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ACPICA: Utilities: Update for strtoul64 merger
ACPICA commit 795e136d2ac77c1c8b091fba019b5fe36a44a323
Fixes a problem with the merger of the two internal versions
of this function. Make the maximum integer width (32-bit or
64-bit) a parameter to the function so that it no longer
exclusively uses the integer width specified in the DSDT/SSDT.
ACPICA BZ 1260
Link: 795e136d
Signed-off-by: Bob Moore <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
53c78d75d8
commit
3a05be7575
7 changed files with 57 additions and 36 deletions
|
|
@ -286,7 +286,8 @@ int ap_dump_table_by_address(char *ascii_address)
|
|||
|
||||
/* Convert argument to an integer physical address */
|
||||
|
||||
status = acpi_ut_strtoul64(ascii_address, 0, &long_address);
|
||||
status = acpi_ut_strtoul64(ascii_address, ACPI_ANY_BASE,
|
||||
ACPI_MAX64_BYTE_WIDTH, &long_address);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
acpi_log_error("%s: Could not convert to a physical address\n",
|
||||
ascii_address);
|
||||
|
|
|
|||
|
|
@ -209,7 +209,8 @@ static int ap_do_options(int argc, char **argv)
|
|||
case 'r': /* Dump tables from specified RSDP */
|
||||
|
||||
status =
|
||||
acpi_ut_strtoul64(acpi_gbl_optarg, 0,
|
||||
acpi_ut_strtoul64(acpi_gbl_optarg, ACPI_ANY_BASE,
|
||||
ACPI_MAX64_BYTE_WIDTH,
|
||||
&gbl_rsdp_base);
|
||||
if (ACPI_FAILURE(status)) {
|
||||
acpi_log_error
|
||||
|
|
|
|||
Loading…
Reference in a new issue