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
This commit is contained in:
yshang1
2007-01-12 02:41:42 +00:00
parent affa5a128c
commit 35d4cd92bd
3 changed files with 61 additions and 19 deletions

View File

@ -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.