From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.5.83; helo=eur03-ve1-obe.outbound.protection.outlook.com; envelope-from=pankaj.bansal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50083.outbound.protection.outlook.com [40.107.5.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 61FA4222CF1B7 for ; Wed, 10 Jan 2018 07:59:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MsbZlEWxrCP27RkcOQOZf+MDJrMo6ryzxR68WS26baI=; b=XCwocOoFAlonlgiyQhTNJbKKkrHw55kY8yBoGoJj0kLb3zOqxot8wpjU2aOhfc3KPWkcqCknU9IJegaj7ag2cmop0Gke8Y87DsQ9047K59ELW0fqHAkBJePgxKdcFP1LnhM0DnVpZjUeywMbPyBAWNFrqVs0GFX65jkGCWQwPBc= Received: from AM0PR0402MB3940.eurprd04.prod.outlook.com (52.133.40.140) by AM0PR0402MB3937.eurprd04.prod.outlook.com (52.133.39.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Wed, 10 Jan 2018 16:05:06 +0000 Received: from AM0PR0402MB3940.eurprd04.prod.outlook.com ([fe80::dcdc:33ca:f0e4:4b16]) by AM0PR0402MB3940.eurprd04.prod.outlook.com ([fe80::dcdc:33ca:f0e4:4b16%13]) with mapi id 15.20.0386.009; Wed, 10 Jan 2018 16:05:06 +0000 From: Pankaj Bansal To: Laszlo Ersek , "edk2-devel@lists.01.org" CC: Leif Lindholm , Ard Biesheuvel , Michael Kinney Thread-Topic: [edk2] [PATCH 2/2] ArmPkg/ArmArchTimerLib: Implement GetElapsedTime function of TimerLib Thread-Index: AQHTifXnBj7aj5I8m0OOaxprOA/zBKNtJ0cAgAAV45A= Date: Wed, 10 Jan 2018 16:05:06 +0000 Message-ID: References: <1515576669-14171-1-git-send-email-pankaj.bansal@nxp.com> <1515576669-14171-2-git-send-email-pankaj.bansal@nxp.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=pankaj.bansal@nxp.com; x-originating-ip: [49.36.1.109] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR0402MB3937; 7:ZS4XMpUL2ofO+i37+NvqvvD6gyDGANw/xTg0udhuKiS6Bi9Ers9U8GMX1uHDLcciMNk99QY+DI+kFFed0ogaAaMgBLSgN6KmEmrAJgYtnLAwmPV/PqVVOfHNtMJodPzY9P/fWp2w1D6EpKpBrRJlU59w8bFI9iNW0e4TPWWgYm9TY4h/awIinuXZgvB8aYmhQJr3C4UXBgBcAAxQ1nXK6dcS6LDc8qIM3OT52uvOd9f8p9vCs+Az1uRDgLEKngyR x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: cb48cb5a-8270-4801-2b24-08d55843ea72 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020); SRVR:AM0PR0402MB3937; x-ms-traffictypediagnostic: AM0PR0402MB3937: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(189930954265078)(185117386973197)(162533806227266)(45079756050767)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:AM0PR0402MB3937; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM0PR0402MB3937; x-forefront-prvs: 0548586081 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(376002)(396003)(346002)(39380400002)(199004)(189003)(13464003)(24454002)(3280700002)(45080400002)(5660300001)(2501003)(4326008)(99286004)(316002)(3660700001)(6116002)(97736004)(68736007)(14454004)(106356001)(966005)(478600001)(2900100001)(3846002)(86362001)(33656002)(53936002)(81156014)(76176011)(8676002)(102836004)(7696005)(81166006)(6436002)(229853002)(6306002)(66066001)(8936002)(7736002)(305945005)(6506007)(25786009)(2906002)(2950100002)(55016002)(9686003)(53546011)(105586002)(74316002)(5250100002)(110136005)(54906003)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3937; H:AM0PR0402MB3940.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wDWKEY8oprIgzSdnGjTLHjmPY/ReZj8ebyHJgEwborQfe96VpsgQmA4t/xhdB2y0iFCv/GRXxgkMPY/C7in9lw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb48cb5a-8270-4801-2b24-08d55843ea72 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2018 16:05:06.1728 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3937 Subject: Re: [PATCH 2/2] ArmPkg/ArmArchTimerLib: Implement GetElapsedTime function of TimerLib 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, 10 Jan 2018 15:59:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgTGFzemxvLA0KDQpUaGFua3MgZm9yIHJldmlld2luZyBteSBjaGFuZ2VzIGFuZCB0aGFua3Mg Zm9yIHBvaW50aW5nIG1lIHRvIHRoZSB0aHJlYWQgdGhhdCB5b3Ugd29ya2VkIG9uLg0KSXQgd2Fz IHJlYWxseSBoZWxwZnVsLiBwbGVhc2Ugc2VlIG15IHJlc3BvbnNlIGlubGluZSAuLg0KDQo+IC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IExhc3psbyBFcnNlayBbbWFpbHRvOmxl cnNla0ByZWRoYXQuY29tXQ0KPiBTZW50OiBXZWRuZXNkYXksIEphbnVhcnkgMTAsIDIwMTggNzo0 NiBQTQ0KPiBUbzogUGFua2FqIEJhbnNhbCA8cGFua2FqLmJhbnNhbEBueHAuY29tPjsgZWRrMi1k ZXZlbEBsaXN0cy4wMS5vcmcNCj4gQ2M6IExlaWYgTGluZGhvbG0gPGxlaWYubGluZGhvbG1AbGlu YXJvLm9yZz47IEFyZCBCaWVzaGV1dmVsDQo+IDxhcmQuYmllc2hldXZlbEBsaW5hcm8ub3JnPjsg TWljaGFlbCBLaW5uZXkgPG1pY2hhZWwuZC5raW5uZXlAaW50ZWwuY29tPg0KPiBTdWJqZWN0OiBS ZTogW2VkazJdIFtQQVRDSCAyLzJdIEFybVBrZy9Bcm1BcmNoVGltZXJMaWI6IEltcGxlbWVudA0K PiBHZXRFbGFwc2VkVGltZSBmdW5jdGlvbiBvZiBUaW1lckxpYg0KPiANCj4gSGVsbG8gUGFua2Fq LA0KPiANCj4gT24gMDEvMTAvMTggMTA6MzEsIFBhbmthaiBCYW5zYWwgd3JvdGU6DQo+ID4gVGhp cyBmdW5jdGlvbiBjYWxj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