mainboard: Make use of ARRAY_SIZE in buildOpts.c on AGESA platforms
Found using coccinelle. Change-Id: I406de6cfe25d3b471dbb6f98d9c62addae008de3 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6195 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
cd47560f2a
commit
d5339ae0b7
@ -32,6 +32,7 @@
|
|||||||
* @e sub-project: Core
|
* @e sub-project: Core
|
||||||
* @e \$Revision: 6049 $ @e \$Date: 2008-05-14 01:58:02 -0500 (Wed, 14 May 2008) $
|
* @e \$Revision: 6049 $ @e \$Date: 2008-05-14 01:58:02 -0500 (Wed, 14 May 2008) $
|
||||||
*/
|
*/
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -523,7 +524,7 @@ UINT8 AGESA_MEM_TABLE_HY[][sizeof(MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
UINT8 SizeOfTableHy = sizeof (AGESA_MEM_TABLE_HY) / sizeof (AGESA_MEM_TABLE_HY[0]);
|
UINT8 SizeOfTableHy = ARRAY_SIZE(AGESA_MEM_TABLE_HY);
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
* These may be 32-bit call-out routines...
|
* These may be 32-bit call-out routines...
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -439,7 +440,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
//#include "CommonReturns.h"
|
//#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -503,4 +504,4 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
//#include "CommonReturns.h"
|
//#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -496,4 +497,4 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -439,7 +440,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -439,7 +440,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
//#include "CommonReturns.h"
|
//#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -496,7 +497,7 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -32,6 +32,8 @@
|
|||||||
* @e sub-project: Core
|
* @e sub-project: Core
|
||||||
* @e \$Revision: 6049 $ @e \$Date: 2008-05-14 01:58:02 -0500 (Wed, 14 May 2008) $
|
* @e \$Revision: 6049 $ @e \$Date: 2008-05-14 01:58:02 -0500 (Wed, 14 May 2008) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -368,7 +370,7 @@ UINT8 AGESA_MEM_TABLE_LN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
UINT8 SizeOfTableLN = sizeof (AGESA_MEM_TABLE_LN) / sizeof (AGESA_MEM_TABLE_LN[0]);
|
UINT8 SizeOfTableLN = ARRAY_SIZE(AGESA_MEM_TABLE_LN);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -439,7 +440,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -439,7 +440,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
//#include "CommonReturns.h"
|
//#include "CommonReturns.h"
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
@ -503,4 +504,4 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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);
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @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 <vendorcode/amd/agesa/f15tn/AGESA.h>
|
||||||
|
|
||||||
/* Include the files that instantiate the configuration definitions. */
|
/* Include the files that instantiate the configuration definitions. */
|
||||||
@ -492,7 +494,7 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -451,7 +453,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -35,6 +35,8 @@
|
|||||||
|
|
||||||
#include "mainboard.h"
|
#include "mainboard.h"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <vendorcode/amd/agesa/f15tn/AGESA.h>
|
#include <vendorcode/amd/agesa/f15tn/AGESA.h>
|
||||||
|
|
||||||
/* Include the files that instantiate the configuration definitions. */
|
/* Include the files that instantiate the configuration definitions. */
|
||||||
@ -437,4 +439,4 @@ UINT8 AGESA_MEM_TABLE_TN[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
{
|
{
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
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);
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <vendorcode/amd/agesa/f14/AGESA.h>
|
#include <vendorcode/amd/agesa/f14/AGESA.h>
|
||||||
|
|
||||||
/* Include the files that instantiate the configuration definitions. */
|
/* Include the files that instantiate the configuration definitions. */
|
||||||
@ -342,4 +344,4 @@ const uint8_t AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
{
|
{
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), /* End of Table */
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), /* End of Table */
|
||||||
};
|
};
|
||||||
const uint8_t SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
const uint8_t SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -440,7 +442,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
* @e \$Revision: 23714 $ @e \$Date: 2009-12-09 17:28:37 -0600 (Wed, 09 Dec 2009) $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "Filecode.h"
|
#include "Filecode.h"
|
||||||
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
#define FILECODE PLATFORM_SPECIFIC_OPTIONS_FILECODE
|
||||||
|
|
||||||
@ -440,7 +442,7 @@ CONST UINT8 AGESA_MEM_TABLE_ON[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
CONST UINT8 SizeOfTableON = sizeof (AGESA_MEM_TABLE_ON) / sizeof (AGESA_MEM_TABLE_ON[0]);
|
CONST UINT8 SizeOfTableON = ARRAY_SIZE(AGESA_MEM_TABLE_ON);
|
||||||
|
|
||||||
/* ***************************************************************************
|
/* ***************************************************************************
|
||||||
* Optional User code to be included into the AGESA build
|
* Optional User code to be included into the AGESA build
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "AdvancedApi.h"
|
#include "AdvancedApi.h"
|
||||||
@ -612,4 +614,4 @@ UINT8 AGESA_MEM_TABLE_HY[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
UINT8 SizeOfTableHy = sizeof (AGESA_MEM_TABLE_HY) / sizeof (AGESA_MEM_TABLE_HY[0]);
|
UINT8 SizeOfTableHy = ARRAY_SIZE(AGESA_MEM_TABLE_HY);
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "AdvancedApi.h"
|
#include "AdvancedApi.h"
|
||||||
@ -516,4 +518,4 @@ UINT8 AGESA_MEM_TABLE_HY[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
UINT8 SizeOfTableHy = sizeof (AGESA_MEM_TABLE_HY) / sizeof (AGESA_MEM_TABLE_HY[0]);
|
UINT8 SizeOfTableHy = ARRAY_SIZE(AGESA_MEM_TABLE_HY);
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "AGESA.h"
|
#include "AGESA.h"
|
||||||
#include "CommonReturns.h"
|
#include "CommonReturns.h"
|
||||||
#include "AdvancedApi.h"
|
#include "AdvancedApi.h"
|
||||||
@ -612,4 +614,4 @@ UINT8 AGESA_MEM_TABLE_HY[][sizeof (MEM_TABLE_ALIAS)] =
|
|||||||
// TABLE END
|
// TABLE END
|
||||||
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
NBACCESS (MTEnd, 0, 0, 0, 0, 0), // End of Table
|
||||||
};
|
};
|
||||||
UINT8 SizeOfTableHy = sizeof (AGESA_MEM_TABLE_HY) / sizeof (AGESA_MEM_TABLE_HY[0]);
|
UINT8 SizeOfTableHy = ARRAY_SIZE(AGESA_MEM_TABLE_HY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user