From bf618cb94ea3e4a131ea61dab3702363afa94286 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Fri, 18 Nov 2016 13:40:32 +0100 Subject: [PATCH] libpayload: increase MAX_ARGC_COUNT MAX_ARGC_COUNT limits the payload to ten parameters which is not enough when used with a proprietary first stage bootloader providing hardware description using around 20 parameters. This patch makes the libpayload able to get up to 32 parameters. Change-Id: I49925040d951dffb9c11425334674d8d498821f2 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/17467 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Tested-by: Martin Roth Reviewed-by: Nico Huber --- payloads/libpayload/include/libpayload.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index b51abdfec6..97d5944c63 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -78,7 +78,7 @@ static inline u32 div_round_up(u32 n, u32 d) { return (n + d - 1) / d; } #define RAND_MAX 0x7fffffff -#define MAX_ARGC_COUNT 10 +#define MAX_ARGC_COUNT 32 /* * Payload information parameters - these are used to pass information