Split MAYBE_STATIC to _BSS and _NONZERO variants
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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35003 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
parent
f2cc52b694
commit
117cf2bdcb
16 changed files with 26 additions and 21 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue