From nobody Mon Feb 9 20:59:08 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+95122+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95122+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1665655158; cv=none; d=zohomail.com; s=zohoarc; b=LxgCKxu8/Dx+ULzyaN1PLPrRPm2QCS4vfNCJIVrWTvka7wf9ZymWilRH+GVhkeGSPtw90s93SG9IyKePZq/ym4+iBSAhh2MWDoQBz/XQgj2CluAd66gMi9JK2yzPQemiIrMAWywTcP+aFcaWW3otL1/pUQzYdgoHTBuM5rIIZv4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665655158; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=eE53KnPelRH+WjzpGMWGEr/xAiY73L9ILpJOuFWXycU=; b=B6zzUIPbaVQhJrkIutt05FkEwRBltYx37nOUGhEfNK2aEkjFUMxJqDMqXwMTD4EHqZBi9IIdAMBMOkUWh9VhJ4obWT1Tab0rwUJJrbjSKHBAFb5+NG/j8DqdEgPXNzsAwe0lQMSqJfNtOHcK8G+m1KjL3t6hvQHSdnnid54qklk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+95122+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1665655158322878.1796986793685; Thu, 13 Oct 2022 02:59:18 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id HoFnYY1788612xSCP1nFMUIH; Thu, 13 Oct 2022 02:59:17 -0700 X-Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web08.5681.1665655156307817794 for ; Thu, 13 Oct 2022 02:59:16 -0700 X-Received: by mail-pl1-f179.google.com with SMTP id n7so1378325plp.1 for ; Thu, 13 Oct 2022 02:59:16 -0700 (PDT) X-Gm-Message-State: h3zdP7JJTHqSFyrbXogpSo8zx1787277AA= X-Google-Smtp-Source: AMsMyM5nDeriA/faBQ+WIgVyXtKX66t2+s0ECjOkJiTBZu8wHYp9jGDEvqMKo2hHQDErkdzfGTWAXw== X-Received: by 2002:a17:902:724b:b0:183:16f:fae4 with SMTP id c11-20020a170902724b00b00183016ffae4mr17314309pll.88.1665655155481; Thu, 13 Oct 2022 02:59:15 -0700 (PDT) X-Received: from localhost.localdomain ([49.206.13.138]) by smtp.gmail.com with ESMTPSA id w8-20020a17090abc0800b0020d43c5c9a0sm2931845pjr.18.2022.10.13.02.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 02:59:14 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V3 13/34] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Date: Thu, 13 Oct 2022 15:28:08 +0530 Message-Id: <20221013095829.1454581-14-sunilvl@ventanamicro.com> In-Reply-To: <20221013095829.1454581-1-sunilvl@ventanamicro.com> References: <20221013095829.1454581-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sunilvl@ventanamicro.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1665655157; bh=ZhvZvJL5R0vCUI7I3nO8S5XkjncxpRsxBGbwJDxaIk4=; h=Cc:Date:From:Reply-To:Subject:To; b=DEi4usxONX7QLt7FXn7S5BDzRv/9c0VXQj6I0GW0NhI0hDME70BJLtIPrrrnouBYpDv pPTw6S7tH/ea/reJmxsw80o7ztJ8PGRWqLVUbuYRpuB4rexWPqq97f3DyDkYmJGHUpK+W N+YMOLj3rf0/fz+X0AJMZxx6C9chOrThADw= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665655160018100011 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4076 Currently, CpuTimerLib library supports only X86 architecture. Refactor to allow other CPU architectures. Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Signed-off-by: Sunil V L --- UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf | 6 +++--- .../Library/CpuTimerLib/{ =3D> Ia32_X64}/BaseCpuTimerLib.c | 0 UefiCpuPkg/Library/CpuTimerLib/{ =3D> Ia32_X64}/CpuTimerLib.c | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename UefiCpuPkg/Library/CpuTimerLib/{ =3D> Ia32_X64}/BaseCpuTimerLib.c (= 100%) rename UefiCpuPkg/Library/CpuTimerLib/{ =3D> Ia32_X64}/CpuTimerLib.c (100%) diff --git a/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf b/UefiCpuPk= g/Library/CpuTimerLib/BaseCpuTimerLib.inf index de0648de91b5..a22457b44940 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] + Ia32_X64/CpuTimerLib.c + Ia32_X64/BaseCpuTimerLib.c =20 [Packages] MdePkg/MdePkg.dec diff --git a/UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.c b/UefiCpuPkg/= Library/CpuTimerLib/Ia32_X64/BaseCpuTimerLib.c similarity index 100% rename from UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.c rename to UefiCpuPkg/Library/CpuTimerLib/Ia32_X64/BaseCpuTimerLib.c diff --git a/UefiCpuPkg/Library/CpuTimerLib/CpuTimerLib.c b/UefiCpuPkg/Libr= ary/CpuTimerLib/Ia32_X64/CpuTimerLib.c similarity index 100% rename from UefiCpuPkg/Library/CpuTimerLib/CpuTimerLib.c rename to UefiCpuPkg/Library/CpuTimerLib/Ia32_X64/CpuTimerLib.c --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#95122): https://edk2.groups.io/g/devel/message/95122 Mute This Topic: https://groups.io/mt/94300394/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-