Split the two usages of __ROMCC__:
[coreboot.git] / src / include / cpu / amd / mtrr.h
index 2b7017d897a9d4271c4d894f374cea77595896c7..d86655dcdd6f5bf74b641c3d6ec97e999460c6de 100644 (file)
@@ -31,7 +31,7 @@
 #define TOP_MEM_MASK                   0x007fffff
 #define TOP_MEM_MASK_KB                        (TOP_MEM_MASK >> 10)
 
-#if !defined( __ROMCC__ ) && !defined (ASSEMBLY)
+#if !defined( __ROMCC__ ) && !defined (ASSEMBLY) && !defined(__PRE_RAM__)
 void amd_setup_mtrrs(void);
 #endif /* __ROMCC__ */