summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Workspace/DecBuildData.py
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-20 04:53:13 +0300
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-11-21 14:02:34 +0300
commit6556224e1f262d1d3d3aecab6e86b14edefe95b7 (patch)
treebee6da6a54da3284bbf32f5ab658850542a27857 /BaseTools/Source/Python/Workspace/DecBuildData.py
parent8611bf99e05faa22c252e1a9db675faee5e6da3d (diff)
downloadedk2-6556224e1f262d1d3d3aecab6e86b14edefe95b7.tar.xz
ArmPkg/ArmSmcPsciResetSystemLib: add missing call to ExitBootServices()
Our poor man's implementation of EnterS3WithImmediateWake () currently sets a high TPL level to disable interrupts, and simply calls the PEI entrypoint again after disabling the MMU. Unfortunately, this is not sufficient: DMA capable devices such as network controllers or USB controllers may still be enabled and writing to memory, e.g., in response to incoming network packets. So instead, do the full ExitBootServices() dance: allocate space and get the memory map, call ExitBootServices(), and in case it fails, get the memory map again and call ExitBootServices() again. This ensures that all cleanup related to DMA capable devices is performed before doing the warm reset. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DecBuildData.py')
0 files changed, 0 insertions, 0 deletions