summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerry She <kerry.she@amd.com>2011-05-07 08:33:14 +0000
committerKerry She <Kerry.She@amd.com>2011-05-07 08:33:14 +0000
commit8c4b499ba57b78aa69735c95bbd9361d41f1a2c1 (patch)
tree8cc34636036f61817966a257d2c195c565dc1fee
parentccad951e7d7198ea915fc8d9c8dee1062bcf57d8 (diff)
downloadcoreboot-8c4b499ba57b78aa69735c95bbd9361d41f1a2c1.tar.xz
put the amdlib and agesa constant to .rodata segment.
so amdlib.c would not complain "Do not use global variables in romstage" Signed-off-by: Kerry She <kerry.she@amd.com> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6557 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/vendorcode/amd/agesa/Porting.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vendorcode/amd/agesa/Porting.h b/src/vendorcode/amd/agesa/Porting.h
index 3a39443452..4550c86c64 100644
--- a/src/vendorcode/amd/agesa/Porting.h
+++ b/src/vendorcode/amd/agesa/Porting.h
@@ -226,9 +226,7 @@
#define VOLATILE volatile
#define TRUE 1
#define FALSE 0
- //#define CONST const - avoid const until the large job of making agesa use it consistently is complete
-#undef CONST
- #define CONST
+ #define CONST const
#define ROMDATA
#define CALLCONV
#define _16BYTE_ALIGN __attribute__ ((aligned (16)))