Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: ff36b2550f94dc5fac838cf298ae5a23cfddf204
https://github.com/tianocore/edk2/commit/ff36b2550f94dc5fac838cf298ae5a23cfddf204
Author: Gerd Hoffmann <[email protected]>
Date: 2022-06-08 (Wed, 08 Jun 2022)
Changed paths:
M BaseTools/Conf/tools_def.template
M OvmfPkg/Sec/SecMain.c
Log Message:
-----------
OvmfPkg/Sec: fix stack switch
The ebp/rbp register can either be used for the frame pointer or
as general purpose register. With gcc (and clang) this depends
on the -f(no-)omit-frame-pointer switch.
This patch updates tools_def.template to explicitly set the compiler
option and also add a define to allow conditionally compile code.
The new define is used to fix stack switching in TemporaryRamMigration.
The ebp/rbp must not be touched when the compiler can use it as general
purpose register. With version 12 gcc starts actually using the
register, so changing it leads to firmware crashes in some
configurations.
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3934
Reported-by: Jiri Slaby <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Jiewen Yao <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits