|
@@ -324,8 +324,8 @@ void __init early_gart_iommu_check(void)
|
|
|
fix = 1;
|
|
|
|
|
|
if (gart_fix_e820 && !fix && aper_enabled) {
|
|
|
- if (!e820_all_mapped(aper_base, aper_base + aper_size,
|
|
|
- E820_RESERVED)) {
|
|
|
+ if (e820_any_mapped(aper_base, aper_base + aper_size,
|
|
|
+ E820_RAM)) {
|
|
|
/* reserve it, so we can reuse it in second kernel */
|
|
|
printk(KERN_INFO "update e820 for GART\n");
|
|
|
add_memory_region(aper_base, aper_size, E820_RESERVED);
|