The code between #if and #endif is only about UMA mode. The CONFIG_GFXUMA should...
[coreboot.git] / src / cpu / x86 / mtrr / mtrr.c
index 9129a1aa53357cc74c037d1ea3b979fd7c2b7a79..7b8d43c1f1f9f6a9537068827b3e45080a12a733 100644 (file)
@@ -418,7 +418,7 @@ void x86_setup_var_mtrrs(unsigned address_bits)
        search_global_resources(
                IORESOURCE_MEM | IORESOURCE_CACHEABLE, IORESOURCE_MEM | IORESOURCE_CACHEABLE,
                set_var_mtrr_resource, &var_state);
-#ifdef CONFIG_GFXUMA
+#if (CONFIG_GFXUMA == 1) /* UMA or SP. */
        // For now we assume the UMA space is at the end of memory
        if (var_state.hole_startk || var_state.hole_sizek) {
                printk_debug("Warning: Can't set up MTRR hole for UMA due to pre-existing MTRR hole.\n");