Krystian Hebel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss
This fixes issue that became visible after implementing post-CAR stage on top of `340e4b80904f lib/cbmem_top: Add a common cbmem_top implementation`. Compilation error was:
Forbidden global variables in romstage: ffffff00 d top.2205
Signed-off-by: Krystian Hebel krystian.hebel@3mdeb.com Change-Id: I088ac824f9b66387843ae5810fd2c75a8b16d9db --- M src/vendorcode/amd/pi/Makefile.inc 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/36976/1
diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index 4e8787b..90714aa 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -68,7 +68,7 @@ AGESA_INC += -I$(src)/commonlib/include AGESA_INC += -I$(VBOOT_SOURCE)/firmware/include
-AGESA_CFLAGS += -march=amdfam10 -mno-3dnow -fno-zero-initialized-in-bss +AGESA_CFLAGS += -march=amdfam10 -mno-3dnow AGESA_CFLAGS += -fno-strict-aliasing -D__LIBAGESA__ CFLAGS_x86_32 += $(AGESA_CFLAGS) CFLAGS_x86_64 += $(AGESA_CFLAGS)
Michał Żygowski has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
Patch Set 1:
Arthur could you look at this? We had a small problem with postcar implementation on fam16h due to the unified cbmem_top implementation. Please confirm if this is the correct approach to solve it
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
Patch Set 1:
It looks like things end up in the .illegal_globals in arch/x86/car.ld. I'm not sure if this is a correct solution.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
Patch Set 1: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/36976/1/src/vendorcode/amd/pi/Makef... File src/vendorcode/amd/pi/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/36976/1/src/vendorcode/amd/pi/Makef... PS1, Line 71: -fno-zero-initialized-in-bss It looks like CAR is cleared indeed so that should be fine.
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
Patch Set 2: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/36976/1/src/vendorcode/amd/pi/Makef... File src/vendorcode/amd/pi/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/36976/1/src/vendorcode/amd/pi/Makef... PS1, Line 71: -fno-zero-initialized-in-bss
It looks like CAR is cleared indeed so that should be fine.
Ack
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
Patch Set 2:
POSTCAR_STAGE=y => CAR_GLOBAL_MIGRATION=n => ENV_STAGE_HAS_BSS_SECTION=1 (for romstage)
=> MAYBE_STATIC_BSS becomes 'static'
But, with -no-zero-initialized-bss, zero-initialized static variables are .data, not .bss. And romstage .data is currently forbidden.
Kyösti Mälkki has submitted this change. ( https://review.coreboot.org/c/coreboot/+/36976 )
Change subject: vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss ......................................................................
vendorcode/amd/pi/Makefile.inc: remove -fno-zero-initialized-in-bss
This fixes issue that became visible after implementing post-CAR stage on top of `340e4b80904f lib/cbmem_top: Add a common cbmem_top implementation`. Compilation error was:
Forbidden global variables in romstage: ffffff00 d top.2205
Signed-off-by: Krystian Hebel krystian.hebel@3mdeb.com Change-Id: I088ac824f9b66387843ae5810fd2c75a8b16d9db Reviewed-on: https://review.coreboot.org/c/coreboot/+/36976 Reviewed-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-by: Arthur Heymans arthur@aheymans.xyz Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/vendorcode/amd/pi/Makefile.inc 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Kyösti Mälkki: Looks good to me, approved Arthur Heymans: Looks good to me, approved
diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index 4e8787b..90714aa 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -68,7 +68,7 @@ AGESA_INC += -I$(src)/commonlib/include AGESA_INC += -I$(VBOOT_SOURCE)/firmware/include
-AGESA_CFLAGS += -march=amdfam10 -mno-3dnow -fno-zero-initialized-in-bss +AGESA_CFLAGS += -march=amdfam10 -mno-3dnow AGESA_CFLAGS += -fno-strict-aliasing -D__LIBAGESA__ CFLAGS_x86_32 += $(AGESA_CFLAGS) CFLAGS_x86_64 += $(AGESA_CFLAGS)