summaryrefslogtreecommitdiff
path: root/src/mainboard/asus/f2a85-m/buildOpts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/asus/f2a85-m/buildOpts.c')
-rw-r--r--src/mainboard/asus/f2a85-m/buildOpts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/asus/f2a85-m/buildOpts.c b/src/mainboard/asus/f2a85-m/buildOpts.c
index 0c6b657add..cd1c812872 100644
--- a/src/mainboard/asus/f2a85-m/buildOpts.c
+++ b/src/mainboard/asus/f2a85-m/buildOpts.c
@@ -33,6 +33,8 @@
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
*/
+#include <stdlib.h>
+
#include <vendorcode/amd/agesa/f15tn/AGESA.h>
/* Include the files that instantiate the configuration definitions. */
@@ -492,7 +494,7 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
// TABLE END
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
};
-UINT8 SizeOfTableTN = sizeof (AGESA_MEM_TABLE_TN) / sizeof (AGESA_MEM_TABLE_TN[0]);
+UINT8 SizeOfTableTN = ARRAY_SIZE(AGESA_MEM_TABLE_TN);
/* ***************************************************************************
* Optional User code to be included into the AGESA build