From 35d4cd92bd21a3538f6c300723b715b1df6911bb Mon Sep 17 00:00:00 2001 From: yshang1 Date: Fri, 12 Jan 2007 02:41:42 +0000 Subject: 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 --- EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'EdkModulePkg/Universal/StatusCode/Dxe/Common/DxeStatusCodeCommon.c') 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. -- cgit v1.2.3