|
@@ -307,7 +307,7 @@ void __init early_gart_iommu_check(void)
|
|
|
continue;
|
|
|
|
|
|
ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL);
|
|
|
- aper_enabled = ctl & AMD64_GARTEN;
|
|
|
+ aper_enabled = ctl & GARTEN;
|
|
|
aper_order = (ctl >> 1) & 7;
|
|
|
aper_size = (32 * 1024 * 1024) << aper_order;
|
|
|
aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff;
|
|
@@ -362,7 +362,7 @@ void __init early_gart_iommu_check(void)
|
|
|
continue;
|
|
|
|
|
|
ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL);
|
|
|
- ctl &= ~AMD64_GARTEN;
|
|
|
+ ctl &= ~GARTEN;
|
|
|
write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl);
|
|
|
}
|
|
|
}
|