From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 718AA21123E14 for ; Fri, 7 Sep 2018 03:12:48 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2018 03:12:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,342,1531810800"; d="scan'208";a="87993992" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.8]) by fmsmga001.fm.intel.com with ESMTP; 07 Sep 2018 03:12:34 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Dandan Bi Date: Fri, 7 Sep 2018 18:13:23 +0800 Message-Id: <20180907101323.50584-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.16.1.windows.1 Subject: [PATCH] UefiCpuPkg/PeiCpuException: Fix coding style issue X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2018 10:12:48 -0000 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Dandan Bi --- UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c index 5dd8423d2f..8f4d5b5e0a 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuException.c @@ -45,7 +45,7 @@ GetExceptionHandlerData ( AsmReadIdtr (&IdtDescriptor); IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base; - + Exception0StubHeader = (EXCEPTION0_STUB_HEADER *)ArchGetIdtHandler (&IdtTable[0]); return Exception0StubHeader->ExceptionHandlerData; } @@ -57,7 +57,7 @@ GetExceptionHandlerData ( exception handler data. The new allocated memory layout follows structure EXCEPTION0_STUB_HEADER. The code assumes that all processors uses the same exception handler for #0 exception. - @param pointer to exception handler data. + @param ExceptionHandlerData pointer to exception handler data. **/ VOID SetExceptionHandlerData ( @@ -73,7 +73,7 @@ SetExceptionHandlerData ( // AsmReadIdtr (&IdtDescriptor); IdtTable = (IA32_IDT_GATE_DESCRIPTOR *)IdtDescriptor.Base; - + Exception0StubHeader = AllocatePool (sizeof (*Exception0StubHeader)); ASSERT (Exception0StubHeader != NULL); CopyMem ( -- 2.16.1.windows.1