From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.43; helo=mga05.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 7C9C421B02822 for ; Mon, 18 Mar 2019 22:56:20 -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 fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Mar 2019 22:56:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,496,1544515200"; d="scan'208";a="156239866" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 18 Mar 2019 22:56:19 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 22:56:19 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 18 Mar 2019 22:56:18 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by shsmsx102.ccr.corp.intel.com ([169.254.2.163]) with mapi id 14.03.0415.000; Tue, 19 Mar 2019 13:56:17 +0800 From: "Wu, Hao A" To: Ming Huang , Leif Lindholm CC: "linaro-uefi@lists.linaro.org" , "edk2-devel@lists.01.org" , "Zeng, Star" , "Dong, Eric" , "Ni, Ray" , "dann.frazier@canonical.com" , "ard.biesheuvel@linaro.org" , "Kinney, Michael D" , "Gao, Liming" , "wanghuiqiang@huawei.com" , "huangming23@huawei.com" , "zhangjinsong2@huawei.com" , "huangdaode@hisilicon.com" , "waip23@126.com" , "Wang, Jian J" Thread-Topic: [MdeModulePkg/Library v1 1/1] MdeModulePkg/UefiBootManangerLib: Fix exception issue Thread-Index: AQHU3YgTR4zb5TTpd06aS+ZGuE9hCKYSOCmA//+a+YCAAJpRAA== Date: Tue, 19 Mar 2019 05:56:16 +0000 Message-ID: References: <20190225091052.25461-1-ming.huang@linaro.org> <20190225091052.25461-2-ming.huang@linaro.org> <20190318124232.67pblu6tbdi47g2w@bivouac.eciton.net> <0732ee09-0955-965d-1ff1-167cbc3a1348@linaro.org> In-Reply-To: <0732ee09-0955-965d-1ff1-167cbc3a1348@linaro.org> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [MdeModulePkg/Library v1 1/1] MdeModulePkg/UefiBootManangerLib: Fix exception 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: Tue, 19 Mar 2019 05:56:20 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNaW5nIEh1YW5nIFttYWlsdG86 bWluZy5odWFuZ0BsaW5hcm8ub3JnXQ0KPiBTZW50OiBUdWVzZGF5LCBNYXJjaCAxOSwgMjAxOSAx MjoxNCBQTQ0KPiBUbzogV3UsIEhhbyBBOyBMZWlmIExpbmRob2xtDQo+IENjOiBsaW5hcm8tdWVm aUBsaXN0cy5saW5hcm8ub3JnOyBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZzsgWmVuZywgU3Rhcjsg RG9uZywNCj4gRXJpYzsgTmksIFJheTsgZGFubi5mcmF6aWVyQGNhbm9uaWNhbC5j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