This patch unifies the use of config options in v2 to all start with CONFIG_
[coreboot.git] / src / cpu / amd / car / clear_init_ram.c
index 8b97129ec6ccc6bd717f8435b4880cd996283c34..0b50480142b0bb7ea8ef3766d94ce422665cce0d 100644 (file)
@@ -7,11 +7,11 @@ static void __attribute__((noinline)) clear_init_ram(void)
        // will reuse %edi as 0 from clear_memory for copy_and_run part, actually it is increased already
        // so noline clear_init_ram
 
-#if HAVE_ACPI_RESUME == 1
+#if CONFIG_HAVE_ACPI_RESUME == 1
        /* clear only coreboot used region of memory. Note: this may break ECC enabled boards */
-       clear_memory( _RAMBASE,  (CONFIG_LB_MEM_TOPK << 10) -  _RAMBASE - DCACHE_RAM_SIZE);
+       clear_memory( CONFIG_RAMBASE,  (CONFIG_LB_MEM_TOPK << 10) -  CONFIG_RAMBASE - CONFIG_DCACHE_RAM_SIZE);
 #else
-        clear_memory(0,  ((CONFIG_LB_MEM_TOPK<<10) - DCACHE_RAM_SIZE));
+        clear_memory(0,  ((CONFIG_LB_MEM_TOPK<<10) - CONFIG_DCACHE_RAM_SIZE));
 #endif
 }