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.20; helo=mga02.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 5B7902034A8B2 for ; Wed, 24 Jan 2018 22:35:31 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2018 22:41:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,409,1511856000"; d="scan'208";a="196121021" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 24 Jan 2018 22:41:00 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 24 Jan 2018 22:40:59 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Thu, 25 Jan 2018 14:40:47 +0800 From: "Yao, Jiewen" To: "Ni, Ruiyu" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH] UefiCpuPkg/CpuExceptionHandler: Init serial port before context dump Thread-Index: AQHTlZrW9mXzIjbiCE6UidD/B127bqOEI5kQ Date: Thu, 25 Jan 2018 06:40:46 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA8B3B6@shsmsx102.ccr.corp.intel.com> References: <20180125051025.367048-1-ruiyu.ni@intel.com> In-Reply-To: <20180125051025.367048-1-ruiyu.ni@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjAyZmQwYzAtYjgwYi00MDU4LTk2NzUtMGM0ZWI3M2Q2YzkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ0cEQzMk9JUk9xNDd2cytLYnNCSW9YS2ZxMlRGZldaWkx4Uk8zNU85YzhFXC9NakNHS2tzcWN6NGk0bFdZSTlXWSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] UefiCpuPkg/CpuExceptionHandler: Init serial port before context dump X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 06:35:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen.yao@Intel.com > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ru= iyu > Ni > Sent: Thursday, January 25, 2018 1:10 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen > Subject: [edk2] [PATCH] UefiCpuPkg/CpuExceptionHandler: Init serial port > before context dump >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Ruiyu Ni > Cc: Jiewen Yao > --- > UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c | 6 > +++++- > UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c | 6 > +++++- > 2 files changed, 10 insertions(+), 2 deletions(-) >=20 > diff --git > a/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c > b/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c > index 0facfde5dd..1a382e88fb 100644 > --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c > +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiDxeSmmCpuException.c > @@ -1,7 +1,7 @@ > /** @file > CPU Exception Library provides PEI/DXE/SMM CPU common exception > handler. >=20 > -Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.
> +Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made availa= ble > under > the terms and conditions of the BSD License that accompanies this distri= bution. > The full text of the license may be found at > @@ -99,6 +99,10 @@ CommonExceptionHandlerWorker ( > CpuPause (); > } > // > + // Initialize the serial port before dumping. > + // > + SerialPortInitialize (); > + // > // Display ExceptionType, CPU information and Image information > // > DumpImageAndCpuContent (ExceptionType, SystemContext); > diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException= .c > b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c > index 13bf20d143..68b159e0ab 100644 > --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c > +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuException.c > @@ -1,7 +1,7 @@ > /** @file > CPU exception handler library implemenation for SEC/PEIM modules. >=20 > -Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.
> +Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials are licensed and made availa= ble > under > the terms and conditions of the BSD License that accompanies this distri= bution. > The full text of the license may be found at > @@ -30,6 +30,10 @@ CommonExceptionHandler ( > IN EFI_SYSTEM_CONTEXT SystemContext > ) > { > + // > + // Initialize the serial port before dumping. > + // > + SerialPortInitialize (); > // > // Display ExceptionType, CPU information and Image information > // > -- > 2.15.1.windows.2 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel