summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2025-12-03 12:40:11 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-12-04 15:36:28 +0300
commit4ff51f3780f92f66c995e276fea8b49f5a02b889 (patch)
tree901e743a5d30f126b469397c3f5f3f3d2b9fb7cd /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h
parent0917ddad25294095145fd7263aa70c2d5f5ecec3 (diff)
downloadedk2-4ff51f3780f92f66c995e276fea8b49f5a02b889.tar.xz
OvmfPkg/MemDebugLogLib: use AcquireSpinLockOrFail
Drop log lines if we can't get the spin lock. Not nice, but better than risking a deadlock. Some background: Most of edk2 runs single-threaded on the BSP, so if something holds the lock it is rather unlikely that waiting is going to help. Specifically I think a deadlock can happen if (a) a timer interrupt arrives while the lock is held, and (b) some higher-TPL timer handler tries to print something to the debug log. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions