Skip to content
Commit e95c7988 authored by Chasel Chiu's avatar Chasel Chiu
Browse files

IntelSiliconPkg/SpiFvbServiceSmm: Rewrite VariableStore header.



When invalid VariableStore FV header detected, current SpiFvbService
will erase both FV and VariableStore headers from flash, however,
it will only rewrite FV header back and cause invalid VariableStore
header.

This patch adding the support for rewriting both FV header and
VariableStore header when VariableStore corruption happened.
The Corrupted variable content should be taken care by
FaultTolerantWrite driver later.

Platform has to set PcdFlashVariableStoreType to inform SpiFvbService
which VariableStoreType should be rewritten.

Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
Cc: Isaac Oram <isaac.w.oram@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: default avatarChasel Chiu <chasel.chiu@intel.com>
Reviewed-by: default avatarMichael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: default avatarS, Ashraf Ali <ashraf.ali.s@intel.com>
Reviewed-by: default avatarIsaac Oram <isaac.w.oram@intel.com>
parent ab4ddecb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment