Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
int __init amd_iommu_setup_ioapic_remapping(void)
{
- struct IO_APIC_route_entry rte = {0};
+ struct IO_APIC_route_entry rte;
unsigned long flags;
u32* entry;
int apic, pin;
{
for ( pin = 0; pin < nr_ioapic_entries[apic]; pin++ )
{
- *(((int *)&rte) + 1) = io_apic_read(apic, 0x11 + 2 * pin);
- *(((int *)&rte) + 0) = io_apic_read(apic, 0x10 + 2 * pin);
-
+ rte = __ioapic_read_entry(apic, pin, 1);
if ( rte.mask == 1 )
continue;