summaryrefslogtreecommitdiff
path: root/src/include/cpu/amd/mtrr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/cpu/amd/mtrr.h')
-rw-r--r--src/include/cpu/amd/mtrr.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/include/cpu/amd/mtrr.h b/src/include/cpu/amd/mtrr.h
index c0d6b51c36..3637dd937d 100644
--- a/src/include/cpu/amd/mtrr.h
+++ b/src/include/cpu/amd/mtrr.h
@@ -27,8 +27,12 @@
#define TOP_MEM_MSR 0xC001001A
#define TOP_MEM2_MSR 0xC001001D
-#define TOP_MEM TOP_MEM_MSR
-#define TOP_MEM2 TOP_MEM2_MSR
+#ifndef TOP_MEM
+ #define TOP_MEM TOP_MEM_MSR
+#endif
+#ifndef TOP_MEM2
+ #define TOP_MEM2 TOP_MEM2_MSR
+#endif
#define TOP_MEM_MASK 0x007fffff
#define TOP_MEM_MASK_KB (TOP_MEM_MASK >> 10)