lib/coreboot_table: use the architecture dependent table size
Utilize the architecture dependent coreboot table size value from <arch/cbconfig.h> Change-Id: I80d51a5caf7c455b0b47c380e1d79cf522502a4c Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/14455 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins)
This commit is contained in:
		| @@ -658,15 +658,6 @@ config ACPI_NHLT | ||||
| 	help | ||||
| 	  Build support for NHLT (non HD Audio) ACPI table generation. | ||||
|  | ||||
|  | ||||
| config COREBOOT_TABLE_SIZE | ||||
| 	hex | ||||
| 	default 0x8000 if ARCH_X86 | ||||
| 	default 0x2000 if !ARCH_X86 | ||||
| 	help | ||||
| 	  The amount of memory to reserve for the coreboot tables in | ||||
| 	  cbmem. | ||||
|  | ||||
| #These Options are here to avoid "undefined" warnings. | ||||
| #The actual selection and help texts are in the following menu. | ||||
|  | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x2000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x2000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x2000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x2000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x2000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -23,4 +23,6 @@ | ||||
|  * to have the same name across all architectures. | ||||
|  */ | ||||
|  | ||||
| #define COREBOOT_TABLE_SIZE 0x8000 | ||||
|  | ||||
| #endif | ||||
|   | ||||
| @@ -15,6 +15,7 @@ | ||||
|  * GNU General Public License for more details. | ||||
|  */ | ||||
|  | ||||
| #include <arch/cbconfig.h> | ||||
| #include <console/console.h> | ||||
| #include <console/uart.h> | ||||
| #include <ip_checksum.h> | ||||
| @@ -560,7 +561,7 @@ void write_tables(void) | ||||
| 	uintptr_t cbtable_start; | ||||
| 	uintptr_t cbtable_end; | ||||
| 	size_t cbtable_size; | ||||
| 	const size_t max_table_size = CONFIG_COREBOOT_TABLE_SIZE; | ||||
| 	const size_t max_table_size = COREBOOT_TABLE_SIZE; | ||||
|  | ||||
| 	cbtable_start = (uintptr_t)cbmem_add(CBMEM_ID_CBTABLE, max_table_size); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user