public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v6 0/3] Fix stack switching, this time for real.
@ 2022-06-10 11:02 Gerd Hoffmann
  2022-06-10 11:02 ` [PATCH v6 1/3] Revert "OvmfPkg/Sec: fix stack switch" Gerd Hoffmann
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2022-06-10 11:02 UTC (permalink / raw)
  To: devel
  Cc: Oliver Steffen, James Bottomley, Tom Lendacky, Gerd Hoffmann,
	Jordan Justen, Yuwei Chen, Brijesh Singh, Erdem Aktas, Jiewen Yao,
	Liming Gao, Ard Biesheuvel, Pawel Polawski, Bob Feng, Min Xu

My testing was busted, ran the tests with outdated tools_def
so I didn't notice the patch had zero effect ...

So, revert the broken patch, drop two lines which are not used
anywhere to reduce confusion, then just disable omit-frame-pointers
for ia32 and x64 to get the source tree back into working state
with minimum fuss.

Not fully sure yet how to go forward with that longer-term.  Enabling
omit-frame-pointers unconditionally makes the NOOPT noticeable larger,
which is probably the reason why the gcc enables that by default only
for -O1 and higher.  So maybe we need different cflags for NOOPT vs.
DEBUG/RELEASE builds.

Or go for a completely different approach, like integrating
DebugAgentLib support into the Pei Dispatcher, so the need to
have a custom TemporaryRamMigration() for that goes away ...

Comments?

take care,
  Gerd

Gerd Hoffmann (3):
  Revert "OvmfPkg/Sec: fix stack switch"
  tools_def: remove GCC_IA32_CC_FLAGS/GCC_X64_CC_FLAGS
  tools_def: add -fno-omit-frame-pointer to GCC48_{IA32,X64}_CC_FLAGS

 OvmfPkg/Sec/SecMain.c             | 4 ----
 BaseTools/Conf/tools_def.template | 8 +++-----
 2 files changed, 3 insertions(+), 9 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-10 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 11:02 [PATCH v6 0/3] Fix stack switching, this time for real Gerd Hoffmann
2022-06-10 11:02 ` [PATCH v6 1/3] Revert "OvmfPkg/Sec: fix stack switch" Gerd Hoffmann
2022-06-10 13:12   ` [edk2-devel] " Yao, Jiewen
2022-06-10 11:02 ` [PATCH v6 2/3] tools_def: remove GCC_IA32_CC_FLAGS/GCC_X64_CC_FLAGS Gerd Hoffmann
2022-06-10 11:02 ` [PATCH v6 3/3] tools_def: add -fno-omit-frame-pointer to GCC48_{IA32,X64}_CC_FLAGS Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox