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.88; helo=mga01.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) (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 8523621106F21 for ; Wed, 7 Nov 2018 00:46:44 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2018 00:46:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,475,1534834800"; d="scan'208";a="102230916" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 07 Nov 2018 00:46:44 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 00:46:43 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 7 Nov 2018 00:46:43 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.117]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.102]) with mapi id 14.03.0415.000; Wed, 7 Nov 2018 16:46:41 +0800 From: "Gao, Liming" To: "Ni, Ruiyu" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , Laszlo Ersek Thread-Topic: [edk2] [PATCH] MdePkg/BaseSynchronizationLib XCODE: fix InternalSync[De|In]crement Thread-Index: AQHUdk63IvpRSomgtUmJiMdWI+Jko6VD/8kw Date: Wed, 7 Nov 2018 08:46:41 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E365E98@SHSMSX104.ccr.corp.intel.com> References: <20181107040346.153720-1-ruiyu.ni@intel.com> In-Reply-To: <20181107040346.153720-1-ruiyu.ni@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmM5ZGRiMDktOTFlYS00NjdhLWJjN2UtOGQ0ZDM5ZTdjODJmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTlU5SWJIRW05VmNLUHlOODZ4K3NPVlRYZGxwSDR3YlNjSlM1MHB0TFladFN6M1plbjFHRHFjU2NObUJBZHNoRCJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdePkg/BaseSynchronizationLib XCODE: fix InternalSync[De|In]crement 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: Wed, 07 Nov 2018 08:46:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UmF5Og0KICBUaGUgcGF0Y2ggaXMgZ29vZC4gUmV2aWV3ZWQtYnk6IExpbWluZyBHYW8gPGxpbWlu Zy5nYW9AaW50ZWwuY29tPg0KDQpUaGFua3MNCkxpbWluZw0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gICAgICAgICAg ICAgICAgICAvLyBubyBpbnB1dHMgdGhhdCBhcmVuJ3QgYWxzbyBvdXRwdXRzDQo+ICAgICAgOiAi bWVtb3J5IiwNCj4gLSAgICAgICJjYyINCj4gKyAgICAgICJjYyIsDQo+ICsgICAgICAiZWF4Ig0K PiAgICAgICk7DQo+IA0KPiAgICByZXR1cm4gUmVzdWx0Ow0KPiBAQCAtNzYsMTEgKzc4LDEzIEBA IEludGVybmFsU3luY0RlY3JlbWVudCAoDQo+ICAgICAgImxvY2sgICAgICAgICAgICAgICAgXG5c dCINCj4gICAgICAieGFkZCAgICAlJWVheCwgJTEgICBcblx0Ig0KPiAgICAgICJkZWMgICAgICUl ZWF4ICAgICAgIFxuXHQiDQo+IC0gICAgOiAiPWEiIChSZXN1bHQpLCAgICAgICAgICAgLy8gJTAN Cj4gKyAgICAibW92ICAgICAlJWVheCwgJTAgIFxuXHQiDQo+ICsgICAgOiAiPXIiIChSZXN1bHQp LCAgICAgICAgICAgLy8gJTANCj4gICAgICAgICIrbSIgKCpWYWx1ZSkgICAgICAgICAgICAvLyAl MQ0KPiAgICAgIDogICAgICAgICAgICAgICAgICAgICAgICAgIC8vIG5vIGlucHV0cyB0aGF0IGFy ZW4ndCBhbHNvIG91dHB1dHMNCj4gICAgICA6ICJtZW1vcnkiLA0KPiAtICAgICAgImNjIg0KPiAr ICAgICAgImNjIiwNCj4gKyAgICAgICJlYXgiDQo+ICAgICAgKTsNCj4gDQo+ICAgIHJldHVybiBS ZXN1bHQ7DQo+IC0tDQo+IDIuMTYuMS53aW5kb3dzLjENCj4gDQo+IF9fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+IGVkazItZGV2ZWwgbWFpbGluZyBsaXN0 DQo+IGVkazItZGV2ZWxAbGlzdHMuMDEub3JnDQo+IGh0dHBzOi8vbGlzdHMuMDEub3JnL21haWxt YW4vbGlzdGluZm8vZWRrMi1kZXZlbA0K