rsdp = acpi_os_map_memory(addr, table_size);
base_ptr = d->arch.efi_acpi_table
+ acpi_get_table_offset(tbl_add, TBL_RSDP);
- ACPI_MEMCPY(base_ptr, rsdp, table_size);
+ memcpy(base_ptr, rsdp, table_size);
acpi_os_unmap_memory(rsdp, table_size);
rsdp = (struct acpi_table_rsdp *)base_ptr;
/ sizeof(u64);
base_ptr = d->arch.efi_acpi_table
+ acpi_get_table_offset(tbl_add, TBL_XSDT);
- ACPI_MEMCPY(base_ptr, table, table->length);
+ memcpy(base_ptr, table, table->length);
acpi_os_unmap_memory(table, sizeof(struct acpi_table_header));
acpi_os_unmap_memory(rsdp_tbl, sizeof(struct acpi_table_rsdp));
}
base_ptr = d->arch.efi_acpi_table + offset;
- ACPI_MEMCPY(base_ptr, table, sizeof(struct acpi_table_header));
+ memcpy(base_ptr, table, sizeof(struct acpi_table_header));
stao = (struct acpi_table_stao *)base_ptr;
- ACPI_MEMCPY(stao->header.signature, ACPI_SIG_STAO, 4);
+ memcpy(stao->header.signature, ACPI_SIG_STAO, 4);
stao->header.revision = 1;
stao->header.length = table_size;
stao->ignore_uart = 1;
}
base_ptr = d->arch.efi_acpi_table + offset;
- ACPI_MEMCPY(base_ptr, table, table_size);
+ memcpy(base_ptr, table, table_size);
/* Add Generic Distributor. */
header = acpi_table_get_entry_madt(ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR, 0);
return -EINVAL;
}
gicd = container_of(header, struct acpi_madt_generic_distributor, header);
- ACPI_MEMCPY(base_ptr + table_size, gicd,
+ memcpy(base_ptr + table_size, gicd,
sizeof(struct acpi_madt_generic_distributor));
table_size += sizeof(struct acpi_madt_generic_distributor);
table_size = table->length;
base_ptr = d->arch.efi_acpi_table
+ acpi_get_table_offset(tbl_add, TBL_FADT);
- ACPI_MEMCPY(base_ptr, table, table_size);
+ memcpy(base_ptr, table, table_size);
fadt = (struct acpi_table_fadt *)base_ptr;
/* Set PSCI_COMPLIANT and PSCI_USE_HVC */