fix ARRAY_SIZE issue.
authorStefan Reinauer <stepan@coresystems.de>
Thu, 22 Apr 2010 00:52:42 +0000 (00:52 +0000)
committerStefan Reinauer <stepan@openbios.org>
Thu, 22 Apr 2010 00:52:42 +0000 (00:52 +0000)
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

src/cpu/amd/model_lx/msrinit.c

index 2ed7c94f7191b7e0be62b303d972e8327c148666..c7b45470e6d07f3bc66504dc1fed7d0be6fef9a0 100644 (file)
@@ -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;