From 117cf2bdcbbadb3b30c9c250130f82f5e6edc236 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 20 Aug 2019 06:01:57 +0300 Subject: Split MAYBE_STATIC to _BSS and _NONZERO variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are required to cover the absensce of .data and .bss sections in some programs, most notably ARCH_X86 in execute-in-place with cache-as-ram. Change-Id: I80485ebac94b88c5864a949b17ad1dccdfda6a40 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/35003 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/security/tpm/tspi/log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/security/tpm/tspi/log.c') diff --git a/src/security/tpm/tspi/log.c b/src/security/tpm/tspi/log.c index 4019962a22..99e6a434fc 100644 --- a/src/security/tpm/tspi/log.c +++ b/src/security/tpm/tspi/log.c @@ -26,7 +26,7 @@ static struct tcpa_table *tcpa_cbmem_init(void) { - MAYBE_STATIC struct tcpa_table *tclt = NULL; + MAYBE_STATIC_BSS struct tcpa_table *tclt = NULL; if (tclt) return tclt; @@ -47,7 +47,7 @@ static struct tcpa_table *tcpa_cbmem_init(void) static struct tcpa_table *tcpa_log_init(void) { - MAYBE_STATIC struct tcpa_table *tclt = NULL; + MAYBE_STATIC_BSS struct tcpa_table *tclt = NULL; /* We are dealing here with pre CBMEM environment. * If cbmem isn't available use CAR or SRAM */ -- cgit v1.2.3