As later 32bit only find table with phys address during 32bit flat mode in head_32.S. To keep 32bit and 64 bit consistent, use phys_addr for all. Use early_ioremap to access during copying. Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx> Cc: Thomas Renninger <trenn@xxxxxxx> Cc: Rafael J. Wysocki <rjw@xxxxxxx> Cc: linux-acpi@xxxxxxxxxxxxxxx --- drivers/acpi/osl.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index b9d2ff0..60317ea 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -616,7 +616,7 @@ void __init acpi_initrd_override_find(void *data, size_t size) table->signature, cpio_path, file.name, table->length); all_tables_size += table->length; - early_initrd_files[table_nr].data = file.data; + early_initrd_files[table_nr].data = (void *)__pa(file.data); early_initrd_files[table_nr].size = file.size; table_nr++; } @@ -625,7 +625,7 @@ void __init acpi_initrd_override_find(void *data, size_t size) void __init acpi_initrd_override_copy(void) { int no, total_offset = 0; - char *p; + char *p, *q; if (!table_nr) return; @@ -654,10 +654,13 @@ void __init acpi_initrd_override_copy(void) arch_reserve_mem_area(acpi_tables_addr, all_tables_size); for (no = 0; no < table_nr; no++) { - size_t size = early_initrd_files[no].size; + unsigned long size = early_initrd_files[no].size; p = early_ioremap(acpi_tables_addr + total_offset, size); - memcpy(p, early_initrd_files[no].data, size); + q = early_ioremap((unsigned long)early_initrd_files[no].data, + size); + memcpy(p, q, size); + early_iounmap(q, size); early_iounmap(p, size); total_offset += size; } -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html