summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-12 02:41:42 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-12 02:41:42 +0000
commit35d4cd92bd21a3538f6c300723b715b1df6911bb (patch)
treed2c1da936676547a9bddf61f2d0acae8b0d5faba /EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
parentaffa5a128c1a10424bb2fa9b7dd3d2b3f6091f33 (diff)
downloadedk2-platforms-35d4cd92bd21a3538f6c300723b715b1df6911bb.tar.xz
Fix EDKT497. In the patch:
1) Check TPL<=TPL_CALLBACK prior to invoking SerialIO protocol. 2) Check TPL <= TPL_NOTIFY prior to allocate memory in datahub status code driver. 3) Add lock to prevent the critical data. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2225 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c')
-rw-r--r--EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
index 43fe3fdfda..1ac1c74a5e 100644
--- a/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
+++ b/EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c
@@ -148,6 +148,9 @@ ReportDispatcher (
IN EFI_STATUS_CODE_DATA *Data OPTIONAL
)
{
+ volatile int tt = 1;
+ while (tt) {
+ }
//
// Use atom operation to avoid the reentant of report.
// If current status is not zero, then the function is reentrancy.