From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (NAM04-MW2-obe.outbound.protection.outlook.com [40.107.101.70]) by mx.groups.io with SMTP id smtpd.web10.15828.1667737938133730042 for ; Sun, 06 Nov 2022 04:32:18 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=R71A02FK; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.101.70, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R/Pq+AjnF/fh6/VAtzfBNdKMTlgDlpOWwlLzUSksZClSpjhf/25XFI/zgeK+YQPTSPTLZqt6G+3zzEaT+yXGEdbPw3wx924i4bJJAmRSNGtHkT7pEedj5DoYhMt6ToMY9QWA8EMjYHXRK9m8D8tK8RJysNg8qPzHr0PvKagCTZymxihdv7rY/DsqNqRs0J+a80ci1zWuDmHtpbOTGB9HKEF40NGyma5akVuOqqmTxnowsnrlhwJNrH07QmMyOfqOwKq/owvUKLRxmcuUKKrA+iMGms0xrVftpDkcpVyqebRrqeRRdxKVQG25B9V5K7TeFVlm0ZaZ9PplVNgByLAmdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8UD4/xDm8D2y4JsPNAWkL96BRPeBAj7Ew4AxR8ypdC8=; b=dFecWfuXLZ4vX84NH/auK54A3UcNNrtiA+JnOynLRaEmvenwByTidMTsCnYrqTEqPHtKllx1KxfCpg3/AqaXMgfYGPxIYE6odLyEgQFtaA2OWLavVUJV3uToJvLhWdVnt3zTubeyyav2N0Kfjn31d+D7p1fTw9voEnCxo+0flOHMF+lSWUUnxiibZJsB2U+WYz38MdHUr3G9701ObKKZO9dvb8goE53jfUIoQ3RTX8eWQhHGxVsKqnXJ4ClI+I8BCiTXgEtmY2xNGobLcCxDlrPfFkfQAjwNd5h/5R0Ypt1hR28UX7XMAgOE52B3gqR3EWozBV1Xq891AvAEZejYxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8UD4/xDm8D2y4JsPNAWkL96BRPeBAj7Ew4AxR8ypdC8=; b=R71A02FK+Mz+aL8XYxSauW96yGeKex+QI23EyAC6m4KATZkA7Gbw68rKp+fE3X0dfgF+qt8xee7/uid5iIKa0QMejHO9l26pIdiIm5zVxYFod+kfazcdxYgLjWEu9iqyHRWHx798p+SFOnMVZDL3yW0rpTVgBfjtNzRl5DBuz8A= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by BL1PR12MB5850.namprd12.prod.outlook.com (2603:10b6:208:395::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25; Sun, 6 Nov 2022 12:32:12 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::ce0a:283e:839:34bd]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::ce0a:283e:839:34bd%3]) with mapi id 15.20.5791.026; Sun, 6 Nov 2022 12:32:10 +0000 From: "Chang, Abner" To: "devel@edk2.groups.io" , "sunilvl@ventanamicro.com" CC: Eric Dong , Ray Ni , Rahul Kumar Subject: Re: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V5 13/30] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Thread-Topic: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V5 13/30] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Thread-Index: AQHY7GPPG0t74kHCuEC/MtffkHpKR64x3sPA Date: Sun, 6 Nov 2022 12:32:10 +0000 Message-ID: References: <20221030132842.54077-1-sunilvl@ventanamicro.com> <20221030132842.54077-14-sunilvl@ventanamicro.com> In-Reply-To: <20221030132842.54077-14-sunilvl@ventanamicro.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-11-06T12:32:06Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=8714926f-e1af-427d-916e-730c5775e75d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|BL1PR12MB5850:EE_ x-ms-office365-filtering-correlation-id: f8b61c0a-5c0f-4679-c7e1-08dabff2ecc2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PIfXuIXBVFBt7cKpDHgCDnJ3lzJ6H7gI4s0S/8BxFTgkixEoZyYJfKnKEC+mYHXVhj1dE9VOChFrA4Uypy/pFrCftDZCScFaNQX0rXcmz8VNP5jnQLWns8MHu5wSkzAoCZFjRze5xojZ0NS7jDYNyRd0AU5bcNDXl8Vtj/L49bXqMYgARbKgzUF2M7CHycd46zGJHRNzVBvN6X5icrEUiZtj82mdbUmn/uOw0+W7yieQSn6gZQxU4ZOC0gPXrFLub3201OjR9MrxCUCWdF7mkr7K0+8vShkthw6ej2ElMG3hWb6tFoms134kJoLUUY1378OYHr7gEH+tktkRrl7Eke7khQ+FHRbLgFkeToGZlT4CkQlk/9ESftYrbE6Jv6LV667KxF4PnGB+ke3yovPdVfWolC7D8lfAf5bZ5lgmDnNv9O1/14YZy91w8a2JcjPIKpDdgg2oZT+CkiYDfublY/0PeWulO1ykP5ZuVfKOfa+T7OCMo8PO8HyNu6mY3cHjP2i+0DUHkrzGFAcc/SpbD5Rl87+AkQ3VVr0mL+x1MoH28uikQwzPyHzdeJrxS534KuxMg/PgJo+Kgp/7FJMeyoMXEXQbwWR4yOZBpA6CoI6iA+5gm730w8spd/1L7W8ITSo0Hsi2jXVLgTO5uyQdtREBTMMy5/Yf1QKSGhm6Ibs1zDKeT0DUUAZcBsV4QDZP/TGgJ7ycxSDntCk4VUHhHjPvljAPy+evKgaJq9iF6toI4X1tPp4w5Gc/fcpAYPFrFAsJJ29WOiOqn/t79J91oD71lPzSHo4sNYK0C1vvnG/Uj0k6W0A2fZmC4o2qld1c7m8XoKO1d3fi2qzmSocWHw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(396003)(366004)(376002)(39860400002)(346002)(451199015)(66899015)(8936002)(5660300002)(41300700001)(33656002)(45080400002)(54906003)(19627235002)(86362001)(71200400001)(478600001)(966005)(316002)(66946007)(76116006)(110136005)(2906002)(8676002)(4326008)(66446008)(64756008)(66476007)(66556008)(26005)(38070700005)(186003)(9686003)(52536014)(83380400001)(6506007)(7696005)(53546011)(55016003)(38100700002)(122000001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GbAtBrR107WN11wH0l9XRLmyE4lVA4J4vffpVozYE3f8z7bFpZ2TXybEapzz?= =?us-ascii?Q?VGqXqsVtcI7sAofswaEknBTmv/1BGghAP3rR5pdGABf4K43GC5nDbfaZlcb4?= =?us-ascii?Q?mWlWqgicofyE4RhWGYMzlqQorE0SS1WA8PtkE39MXLKzikcjIgg5XgC1VBFE?= =?us-ascii?Q?Iee66K48fZxt7HsnBcOtVeP5tgrEGatIljnl7nbclUnpNo7nQTM6tdLCw50K?= =?us-ascii?Q?NiOwOeNa9ivymMCDxsPB2eP9Ju/gW+88VTEPpihUnfTWw838RMMQQmfgbEoJ?= =?us-ascii?Q?LncRXgevxK8SiIizpUdUPzVmtzk5pR8MCO/fL03qzH/Mkow+W87OXpx+tw28?= =?us-ascii?Q?Qp8GYznyfEEVl9hpVmdPeFIFmi3ienziJKl9RPqGEK6W7P6jBe2QEhkPJrZE?= =?us-ascii?Q?DgXtlmS4s/7YByoA4RT2ssh1WgZQPv0n1j8QwkIgDnU4N14e0lZ8PHvlJiW7?= =?us-ascii?Q?YfbXjze9BNEemwL8LEKenNJ+7c8L446WEY0WrLd2QEgmESPKTe8R8MxRirlq?= =?us-ascii?Q?QVKgDCziiHIrLADofJjLglRxoH5csw7QDgsMUoQkseFjWwg77diG38xgnEak?= =?us-ascii?Q?IqRnumXJ/ALDLE0ouChin1BBTvB9Vbs/Z8HH6SuYvWUZ88bfO0y7k+mIPRnD?= =?us-ascii?Q?/tITnzmHbj8cJH+nMpg76C6X40H/Qwzd0GLulaVU/H1zV+mCjDcGrGwcE9jO?= =?us-ascii?Q?xF62gH/H+fXx7BXCvBJ7L4Pp52GjsKVIyDTQn9vK6r91GjOry4CNWYH3fTuu?= =?us-ascii?Q?XHavIehF3ctUhC9M6Qf3+RjdsAjgFRtXG92dyOyFhROpqjowg1+IEbwGPzui?= =?us-ascii?Q?SSVBpe31Cc29fj21b6LsduynOPt8lW27Ez7yI71IsmhSWRyu/DkBCcE7CGAd?= =?us-ascii?Q?BdguXhyipLiVP48lI6bG7peYG99RU7xlBMK0TBbHGKIGIBseD4khFKcrxFzG?= =?us-ascii?Q?2MEZM5zUjECoAKHT59tjjEChqL3QHT29+WzdFak3dkhXcKWBwEFmHaBhaIrS?= =?us-ascii?Q?lQo06P2wN46FxLj9G755xzfbEVAMg/mG0dSL9Q4vOl3lHTkroTNeSp+2FYaT?= =?us-ascii?Q?7jSv1ivvH66FjQQPfzVTydV6At/Tfqw+Z4SH9dEK9W2vMsTO4/q+lEJ4G2Cl?= =?us-ascii?Q?0/g0G3gBaTAg40+QesIVYnUDbLMGr4s5Y7WkVQVF+2rhJmv3aHaLxJZToR1Z?= =?us-ascii?Q?gYYgtGqZI3ZkhZnz4D4/CIKyfKXrtwyrKYql30dsA1R3aEQ2L16hJlLOD3T0?= =?us-ascii?Q?c8jddbV5y1uKXWUp/MyY4hJRuDd302wn1CwB5H3zZEsbWjysyDgBjgPHjr0/?= =?us-ascii?Q?V7tgEVXlaJ2OWO12kB4J+J/L/ZqIT2wXoan5T79zaGZSg8mxr+t/hNg3m7nW?= =?us-ascii?Q?qfpJyN8LiR7BJ0ihmTGOpWCAqLSo0VK4OkJWcAZjGPAvbXn0l32ChB/TrGvC?= =?us-ascii?Q?cH+IhZNaH+LofjSauy61cTkfKXDxSKW9/o5fYaLHwMb2pJtnC2RORfcyqxdM?= =?us-ascii?Q?VvlCpM9fTe5xE1dh5V5/JwZuTOO16MIBRnS6yaHQQxYhfELL9B3tFfwVcM7f?= =?us-ascii?Q?w2ccFr46fNDljuESikjWzMY/8GWtHK9y7JSZUnvV?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f8b61c0a-5c0f-4679-c7e1-08dabff2ecc2 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Nov 2022 12:32:10.1212 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: J54RA4kyiiz1MF3eHHO1vQRJ+sEWFyx4yQ4WpW6oWu1JysYSerM3gWewhNXz7rtY7UMCEaG4d4eyIvuNkqZ/zQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5850 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] Acked-by: Abner Chang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Sunil V L > via groups.io > Sent: Sunday, October 30, 2022 9:28 PM > To: devel@edk2.groups.io > Cc: Eric Dong ; Ray Ni ; Rahul > Kumar > Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V5 13/30] > UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures >=20 > Caution: This message originated from an External Source. Use proper > caution when opening attachments, clicking links, or responding. >=20 >=20 > REF: > https://nam11.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fbugz > illa.tianocore.org%2Fshow_bug.cgi%3Fid%3D4076&data=3D05%7C01%7Ca > bner.chang%40amd.com%7C67d9801d83d143b0bf2908daba7aef42%7C3dd89 > 61fe4884e608e11a82d994e183d%7C0%7C0%7C638027334440445381%7CUnkn > own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik > 1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3DIGuSZ7ju65kJPe > zopj9ks0DquRiOSLMAkM%2Fk1aMNFiA%3D&reserved=3D0 >=20 > Currently, CpuTimerLib library supports only X86 architecture. > Refactor to allow other CPU architectures. >=20 > Cc: Eric Dong > Cc: Ray Ni > Cc: Rahul Kumar > Signed-off-by: Sunil V L > --- > UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf | 6 +++--= - > UefiCpuPkg/Library/CpuTimerLib/{ =3D> Ia32X64}/BaseCpuTimerLib.c | 0 > UefiCpuPkg/Library/CpuTimerLib/{ =3D> Ia32X64}/CpuTimerLib.c | 0 > 3 files changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf > b/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf > index de0648de91b5..4b263965ed90 100644 > --- a/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf > +++ b/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf > @@ -18,9 +18,9 @@ [Defines] > LIBRARY_CLASS =3D TimerLib > MODULE_UNI_FILE =3D BaseCpuTimerLib.uni >=20 > -[Sources] > - CpuTimerLib.c > - BaseCpuTimerLib.c > +[Sources.IA32, Sources.X64] > + Ia32X64/CpuTimerLib.c > + Ia32X64/BaseCpuTimerLib.c >=20 > [Packages] > MdePkg/MdePkg.dec > diff --git a/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.c > b/UefiCpuPkg/Library/CpuTimerLib/Ia32X64/BaseCpuTimerLib.c > similarity index 100% > rename from UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.c > rename to UefiCpuPkg/Library/CpuTimerLib/Ia32X64/BaseCpuTimerLib.c > diff --git a/UefiCpuPkg/Library/CpuTimerLib/CpuTimerLib.c > b/UefiCpuPkg/Library/CpuTimerLib/Ia32X64/CpuTimerLib.c > similarity index 100% > rename from UefiCpuPkg/Library/CpuTimerLib/CpuTimerLib.c > rename to UefiCpuPkg/Library/CpuTimerLib/Ia32X64/CpuTimerLib.c > -- > 2.38.0 >=20 >=20 >=20 >=20 >=20