Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 11868992cc297387878bd9fb69db3c7aaa094f31
      
https://github.com/tianocore/edk2/commit/11868992cc297387878bd9fb69db3c7aaa094f31
  Author: Ray Ni <[email protected]>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M IntelFsp2Pkg/FspSecCore/X64/Fsp24ApiEntryM.nasm
    M IntelFsp2Pkg/FspSecCore/X64/FspApiEntryM.nasm
    M IntelFsp2Pkg/Library/BaseFspCommonLib/FspCommonLib.c
    M IntelFsp2Pkg/Library/BaseFspSwitchStackLib/X64/Stack.nasm

  Log Message:
  -----------
  IntelFsp2Pkg: Save/restore FSBASE/GSBASE in entry and exit

FSP may store something in FSBASE/GSBASE while bootloader may do so as well.
Add the FSBASE/GSBASE save/restore logic in the FSP entry and exit
to avoid the contents in FSBASE/GSBASE are corrupted by the other party.

The change assumes there is no very old CPU that does not support
rdfsbase/wrfsbase/rdgsbase/wrgsbase instructions.

Signed-off-by: Ray Ni <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to