summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-16 03:00:44 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-16 03:00:44 +0000
commit5e7ea54b33633bffb8208fc7a3ce5e50709721f3 (patch)
tree1b5ea86f9a6d8b1249bdaf0f87e9e4114edd7d23
parentd117ee1fee4054d2286d20526d44bf695dbd8427 (diff)
downloadedk2-5e7ea54b33633bffb8208fc7a3ce5e50709721f3.zip
edk2-5e7ea54b33633bffb8208fc7a3ce5e50709721f3.tar.gz
edk2-5e7ea54b33633bffb8208fc7a3ce5e50709721f3.tar.bz2
Update comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8569 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c b/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c
index 94a30da..2460628 100644
--- a/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c
+++ b/IntelFrameworkModulePkg/Library/PeiReportStatusCodeLib/ReportStatusCodeLib.c
@@ -260,7 +260,8 @@ ReportStatusCodeExtractDebugInfo (
*ErrorLevel = DebugInfo->ErrorLevel;
//
- // Here the address returned in Marker is 64-bit aligned.
+ // The first 12 * sizeof (UINT64) bytes following EFI_DEBUG_INFO are for variable arguments
+ // of format in DEBUG string. Its address is returned in Marker and has to be 64-bit aligned.
// It must be noticed that EFI_DEBUG_INFO follows EFI_STATUS_CODE_DATA, whose size is
// 20 bytes. The size of EFI_DEBUG_INFO is 4 bytes, so we can ensure that Marker
// returned is 64-bit aligned.
@@ -268,10 +269,6 @@ ReportStatusCodeExtractDebugInfo (
// cause unalignment exception.
//
*Marker = (BASE_LIST) (DebugInfo + 1);
- //
- // The first 12 * UINTN bytes of the string are really an
- // argument stack to support varargs on the Format string.
- //
*Format = (CHAR8 *)(((UINT64 *)*Marker) + 12);
return TRUE;