summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
diff options
context:
space:
mode:
authorSergii Dmytruk <sergii.dmytruk@3mdeb.com>2024-07-20 16:56:41 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-08-25 14:54:17 +0300
commit68a7665250e814f4ce8dd10f4310ce27df21e495 (patch)
treec9c31f6f60751f0b16be2eef1b617460ee81be14 /MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
parent2736239acaa7eb6dd6866eab543d307f25ee4b56 (diff)
downloadedk2-68a7665250e814f4ce8dd10f4310ce27df21e495.tar.xz
UefiPayloadPkg/FmpDeviceSmmLib: Add for full chip flashing via SMMSTOREv2
Part of the functions of the library are left unimplemented (return EFI_UNSUPPORTED) the rest use information about current firmware obtained from CBMEM (at this point available in a HOB) and SMMSTOREv2 to perform flashing. Flashing is slightly optimized: FmpDeviceSetImageWithStatus() first reads a block and checks that it differs from the new contents before initiating erase and write. On successful flashing runtime APIs for dealing with EFI variables are replaced with stubs to prevent accesses to SMMSTORE from the currently running firmware. The SMMSTORE region's contents and possibly location and size have been changed as a result of the update and continued use of it can have unpredictable consequences including corruption of the newly written firmware image. A capsule mode always ends with a reboot, so the variable services are unavailable only for a very short period after a successful flashing. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Diffstat (limited to 'MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf')
0 files changed, 0 insertions, 0 deletions