Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34886 )
Change subject: arch/x86: Improve definition of MAYBE_STATIC ......................................................................
arch/x86: Improve definition of MAYBE_STATIC
With CAR_GLOBAL_MIGRATION=n .bss is always available for zero-initialised variables in pre-ram stages.
Change-Id: I9f584058c7ea3a68ef7f38eaf3c9d8daf620828e Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/include/stddef.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/34886/1
diff --git a/src/include/stddef.h b/src/include/stddef.h index 7cae2e6..d7b6d60 100644 --- a/src/include/stddef.h +++ b/src/include/stddef.h @@ -36,7 +36,7 @@ #endif
/* Work around non-writable data segment in execute-in-place romstage on x86. */ -#if defined(__PRE_RAM__) && CONFIG(ARCH_X86) +#if defined(__PRE_RAM__) && CONFIG(CAR_GLOBAL_MIGRATION) #define MAYBE_STATIC #else #define MAYBE_STATIC static