summaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_lx
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-04-22 00:52:42 +0000
committerStefan Reinauer <stepan@openbios.org>2010-04-22 00:52:42 +0000
commit4e169f903071b6201bdb046020d9c73f95e64715 (patch)
tree7ff57e2445a838063ffcbcfb18d3fd96ae1eefc7 /src/cpu/amd/model_lx
parentf94a97be7208781cd63f4aebfc48ee94a739eecc (diff)
fix ARRAY_SIZE issue.
the gx2+5536 issue is still open, and it reveils a serious problem with the code that was hidden under a bunch of warnings until now. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5474 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/model_lx')
-rw-r--r--src/cpu/amd/model_lx/msrinit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/amd/model_lx/msrinit.c b/src/cpu/amd/model_lx/msrinit.c
index 2ed7c94f71..c7b45470e6 100644
--- a/src/cpu/amd/model_lx/msrinit.c
+++ b/src/cpu/amd/model_lx/msrinit.c
@@ -17,6 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stdlib.h>
+
struct msrinit {
u32 msrnum;
msr_t msr;