From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.3.21; helo=nam02-bl2-obe.outbound.protection.outlook.com; envelope-from=vanjeff_919@hotmail.com; receiver=edk2-devel@lists.01.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-oln040092003021.outbound.protection.outlook.com [40.92.3.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4D71021CB2E27 for ; Wed, 3 Jan 2018 00:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZidS3i43qaFH6i7Zhnr8b2i7JubBLpJ7eM+rNG8bv2A=; b=NCfRC+nT7VRNbM6zkBBE1DMZoFucJHSny+wNb69nflxkOlNeH42T5d/qQbsf0BNVT0D1+jKQOmYOgxdhc1caXhbr/Nk8xyhHWDe2oe0ZqcufMpplBsECeT2Oo1AeLLIyI0+NOZ7re1hWqImRMvnoBZSSV9lhXEnmd0AXxkdChVPqNKaExX68PejMGAJGylkngm9I5rApH1Wmm/h35xR0B1jEodM0/JyC/MktQSj91RpzF4uBNQQUzfGnXCiHvaVmf6v1Q0d/zcRped9M5jtDGNfqAFiw0iQY7xU/TsrjJLkrTox8Gsd/0+yRnlh+uA8GIDmllYr/KsGG/0pTewctFA== Received: from SN1NAM02FT013.eop-nam02.prod.protection.outlook.com (10.152.72.54) by SN1NAM02HT206.eop-nam02.prod.protection.outlook.com (10.152.73.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.302.6; Wed, 3 Jan 2018 08:45:44 +0000 Received: from CO2PR19MB0137.namprd19.prod.outlook.com (10.152.72.51) by SN1NAM02FT013.mail.protection.outlook.com (10.152.72.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.345.12 via Frontend Transport; Wed, 3 Jan 2018 08:45:44 +0000 Received: from CO2PR19MB0137.namprd19.prod.outlook.com ([10.161.82.25]) by CO2PR19MB0137.namprd19.prod.outlook.com ([10.161.82.25]) with mapi id 15.20.0366.009; Wed, 3 Jan 2018 08:45:44 +0000 From: Fan Jeff To: Paulo Alcantara , "edk2-devel@lists.01.org" CC: Laszlo Ersek , Eric Dong Thread-Topic: [edk2] [RFC v4 5/6] UefiCpuPkg/CpuExceptionHandlerLib: Ensure valid frame/stack pointers Thread-Index: AQHTgF9FmnVwdVyQSEem57W+ARlF5KNh3NqE Date: Wed, 3 Jan 2018 08:45:44 +0000 Message-ID: References: , <836f7f2205e91c16d7c427c5b6e127f4a4dfa62e.1514517573.git.paulo@paulo.ac> In-Reply-To: <836f7f2205e91c16d7c427c5b6e127f4a4dfa62e.1514517573.git.paulo@paulo.ac> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:6C3DFE044D1B89A73E69134D42CAA9CFFCC209A8FF45D16FAA01224C9316FCA7; UpperCasedChecksum:96518E06ED12CDBB867301DD139E4CA65435882FB914AAFF28AB700AE1A8D28F; SizeAsReceived:7335; Count:47 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [K9rHiYNxJHSy71n6SGtgyFUo0LHv9yb4] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; SN1NAM02HT206; 6:TsZoiXABkLiPUSMPmCMJAOL/NRd+ztdFoY9PUJIKIKTPhyycq9HJQJTRh4M2rjS3ZcBLxwcp3H9lYUGYK66X+frhmkNM032OVD/8Zp9mdDYPHOAgR7Us/afNOiwcpJxNXpBvkQLi7PO4+zpoCfz62I4mSZHburVhrzRmZdWjDrEVl/b02NZc0Ux5aB8eechgqD7IoWZK/D7a1w5BDnH1L/KcJTfCpvtki8vb/b9NxeH8m1lHzkTMQZvDo/YOFKvOXCdTk4w8dwugu8B2tjavt5/9fFkd8wAoPLjSlXBiTARQmX8sYDQQXV3eQyQ7n/Jz+8pIpxJyHV4sqME5MILGniBLfZHI2JfCgTgndUbnVSA=; 5:2428n4rN0PC4gJH69P99nwrjJ0b8EYXL6aFgKmSIV/1owhnJk8GIA7zfBzFhe5qWt1N4hoAte8zCzgi8GdPwdwFmANDk1eC1JcH+ei/NU6ky6DzAFCHqPlhOGvQVbD7jZ7wOPV4DcPrXdFcCraVLIHZIOjjH4Cv/JbVw7ACi4Ns=; 24:7GNSSYXOo7BDHaYHS5maP3T1DcqUyAopJE7GFtBMru+apv3ZQD1VBlQ68evHJNTUk706HMi0n2E51i5YhcLCFvCdDKixjjtXtDJLimYkpAs=; 7:2WToRjnE+2Zcw3Itw4rstOupn/riN2CRRY5LKOKb/NXhapvx+FmM1Q0tbq2a9XCl6ueP4i5NGYPTJz2hjxWDoAIQrFvGZq25yLpMA7wlFpCA4iOUhvWWmpKSg8lHc6cseugOIP/XwOkp7kUfkQukGOLHXp+C5EmDYBZamLUMSMKtm6G/+KfE4semkiwf5qsJd3KaukKaeGlHPU6+UpalDzPkY1bD5LSLRp/FgTWGmRkzjuHmzAD9Bj1gfIJiUilQ x-incomingheadercount: 47 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:(222181515654134); BCL:0; PCL:0; RULEID:(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045); SRVR:SN1NAM02HT206; x-ms-traffictypediagnostic: SN1NAM02HT206: x-ms-office365-filtering-correlation-id: 6b0aab4d-87e3-4b27-2742-08d5528660bd x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:SN1NAM02HT206; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:SN1NAM02HT206; x-forefront-prvs: 0541031FF6 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:SN1NAM02HT206; H:CO2PR19MB0137.namprd19.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b0aab4d-87e3-4b27-2742-08d5528660bd X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2018 08:45:44.4272 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT206 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: =?UTF-8?B?562U5aSNOiBbUkZDIHY0IDUvNl0gVWVmaUNwdVBrZy9DcHVFeGNlcHRpb25IYW5kbGVyTGliOiBFbnN1cmUgdmFsaWQgZnJhbWUvc3RhY2sgcG9pbnRlcnM=?= 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: Wed, 03 Jan 2018 08:40:44 -0000 Content-Language: zh-CN Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 UGF1bG8sDQoNCisgICAgaWYgKCFJc0xvZ2ljYWxBZGRyZXNzVmFsaWQgKFN5c3RlbUNvbnRleHQs DQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW1Db250ZXh0LlN5c3RlbUNv bnRleHRJYTMyLT5TcywNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChVSU5UTilF YnApIHx8DQorICAgICAgICAhSXNMb2dpY2FsQWRkcmVzc1ZhbGlkIChTeXN0ZW1Db250ZXh0LA0K KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtQ29udGV4dC5TeXN0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HJh Y2UgKA0KICAgSW50ZXJuYWxQcmludE1lc3NhZ2UgKCJcbkNhbGwgdHJhY2U6XG4iKTsNCg0KICAg Zm9yICg7Oykgew0KKyAgICAvLw0KKyAgICAvLyBDaGVjayBmb3IgdmFsaWQgZnJhbWUgcG9pbnRl cg0KKyAgICAvLw0KKyAgICBpZiAoIUlzTG9naWNhbEFkZHJlc3NWYWxpZCAoU3lzdGVtQ29udGV4 dCwNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFN5c3RlbUNvbnRleHQuU3lzdGVt Q29udGV4dElhMzItPlNzLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKFVJTlRO KUVicCArIDQpIHx8DQorICAgICAgICAhSXNMb2dpY2FsQWRkcmVzc1ZhbGlkIChTeXN0ZW1Db250 ZXh0LA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU3lzdGVtQ29udGV4dC5TeXN0 ZW1Db250ZXh0SWEzMi0+U3MsDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoVUlO VE4pRWJwKSkgew0KKyAgICAgIEludGVybmFsUHJpbnRNZXNzYWdlICgiJWE6IGF0dGVtcHRlZCB0 byBkZXJlZmVyZW5jZSBhbiBpbnZhbGlkIGZyYW1lICINCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgInBvaW50ZXIgYXQgMHglMDh4XG4iLCBfX0ZVTkNUSU9OX18sIEVicCk7DQorICAgICAg YnJlYWs7DQorICAgIH0NCisNCiAgICAgLy8NCiAgICAgLy8gUHJpbnQgc3RhY2sgZnJhbWUgaW4g dGhlIGZvbGxvd2luZyBmb3JtYXQ6DQogICAgIC8vDQpAQCAtNTg4LDYgKzY5MiwxNiBAQCBEdW1w SW1hZ2VNb2R1bGVOYW1lcyAoDQogICAvLyBXYWxrIHRocm91Z2ggY2FsbCBzdGFjayBhbmQgZmlu ZCBuZXh0IG1vZHVsZSBuYW1lcw0KICAgLy8NCiAgIGZvciAoOzspIHsNCisgICAgaWYgKCFJc0xv Z2ljYWxBZGRyZXNzVmFsaWQgKFN5c3RlbUNvbnRleHQsDQorICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICBTeXN0ZW1Db250ZXh0LlN5c3RlbUNvbnRleHRJYTMyLT5TcywNCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIChVSU5UTilFYnApIHx8DQorICAgICAgICAhSXNMb2dp Y2FsQWRkcmVzc1ZhbGlkIChTeXN0ZW1Db250ZXh0LA0KKyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgU3lzdGVtQ29udGV4dC5TeXN0ZW1Db250ZXh0SWEzMi0+U3MsDQorICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoVUlOVE4pRWJwICsgNCkpIHsNCisgICAgICBJbnRlcm5h bFByaW50TWVzc2FnZSAoIiVhOiBhdHRlbXB0ZWQgdG8gZGVyZWZlcmVuY2UgYW4gaW52YWxpZCBm cmFtZSAiDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICJwb2ludGVyIGF0IDB4JTA4eFxu IiwgX19GVU5DVElPTl9fLCBFYnApOw0KKyAgICB9DQorDQogICAgIC8vDQogICAgIC8vIFNldCBF SVAgd2l0aCByZXR1cm4gYWRkcmVzcyBmcm9tIGN1cnJlbnQgc3RhY2sgZnJhbWUNCiAgICAgLy8N CkBAIC02NTEsMTYgKzc2NSwyMyBAQCBEdW1wSW1hZ2VNb2R1bGVOYW1lcyAoDQogLyoqDQogICBE dW1wIHN0YWNrIGNvbnRlbnRzLg0KDQotICBAcGFyYW1baW5dICBDdXJyZW50RXNwICAgICAgICAg Q3VycmVudCBzdGFjayBwb2ludGVyIGFkZHJlc3MuDQorICBAcGFyYW1baW5dICBTeXN0ZW1Db250 ZXh0ICAgICAgIFBvaW50ZXIgdG8gRUZJX1NZU1RFTV9DT05URVhULg0KICAgQHBhcmFtW2luXSAg VW53b3VuZFN0YWNrc0NvdW50ICBDb3VudCBvZiB1bndvdW5kIHN0YWNrIGZyYW1lcy4NCiAqKi8N CiBTVEFUSUMNCiBWT0lEDQogRHVtcFN0YWNrQ29udGVudHMgKA0KLSAgSU4gVUlOVDMyICBDdXJy ZW50RXNwLA0KLSAgSU4gSU5UTiAgICBVbndvdW5kU3RhY2tzQ291bnQNCisgIElOICBFRklfU1lT VEVNX0NPTlRFWFQgIFN5c3RlbUNvbnRleHQsDQorICBJTiAgSU5UTiAgICAgICAgICAgICAgICBV bndvdW5kU3RhY2tzQ291bnQNCiAgICkNCiB7DQorICBVSU5UMzIgQ3VycmVudEVzcDsNCisNCisg IC8vDQorICAvLyBHZXQgY3VycmVudCBzdGFjayBwb2ludGVyDQorICAvLw0KKyAgQ3VycmVudEVz cCA9IFN5c3RlbUNvbnRleHQuU3lzdGVtQ29udGV4dElhMzItPkVzcDsNCisNCiAgIC8vDQogICAv LyBDaGVjayBmb3IgcHJvcGVyIHN0YWNrIGFsaWdubWVudA0KICAgLy8NCkBAIC02NzQsNiArNzk1 LDIwIEBAIER1bXBTdGFja0NvbnRlbnRzICgNCiAgIC8vDQogICBJbnRlcm5hbFByaW50TWVzc2Fn ZSAoIlxuU3RhY2sgZHVtcDpcbiIpOw0KICAgd2hpbGUgKFVud291bmRTdGFja3NDb3VudC0tID4g MCkgew0KKyAgICAvLw0KKyAgICAvLyBDaGVjayBmb3IgYSB2YWxpZCBzdGFjayBwb2ludGVyIGFk ZHJlc3MNCisgICAgLy8NCisgICAgaWYgKCFJc0xvZ2ljYWxBZGRyZXNzVmFsaWQgKFN5c3RlbUNv bnRleHQsDQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBTeXN0ZW1Db250ZXh0LlN5 c3RlbUNvbnRleHRJYTMyLT5TcywNCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChV SU5UTilDdXJyZW50RXNwKSB8fA0KKyAgICAgICAgIUlzTG9naWNhbEFkZHJlc3NWYWxpZCAoU3lz dGVtQ29udGV4dCwNCisgICAgICAgICAgICA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