From nobody Mon Feb 9 20:30:30 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+94912+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+94912+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1665396769; cv=none; d=zohomail.com; s=zohoarc; b=jJOPuDYgVTlc7HCt75UWgS76kdqzk3i/yY97ECQ9St127BbuNm7/t5c1fMQ0rktnVDWVUOHFXEy2dffw5ArUHLBWAGOl5C0cph8o1NrFTs9V/GrzXbk1TBbvSMQd/4LsFDqUZOKzhlMNal0lhTdORiSzTVqU/x+r+qM2So4ymE4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665396769; 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=Px1p7WJu/AJnwWk7Rn4fH+3c7WmdsRhRDg7mRNMBruM=; b=Yx7jtonehe/70Y7xf7odhPndvFMT8eoydlgaY8x1EPRqkV56XSudc40GfR0ZZ+hImeEhOTt+k6BpE4wa996bjHFTYfIvjDD27VDpdz642kgF+sW4a+Yg1mwcXB6Hsh1UFDJBQ9TGbAp8GnZobluPgcxtEjjk3p6jBkP5Ee81rHI= 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+94912+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 166539676901777.28846937351898; Mon, 10 Oct 2022 03:12:49 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id aFcNYY1788612xGOeOw54QMG; Mon, 10 Oct 2022 03:12:48 -0700 X-Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web11.4509.1665396767912725341 for ; Mon, 10 Oct 2022 03:12:48 -0700 X-Received: by mail-pl1-f170.google.com with SMTP id z20so9942657plb.10 for ; Mon, 10 Oct 2022 03:12:47 -0700 (PDT) X-Gm-Message-State: 7g0326xvzJxdmJHqyCXWEhlAx1787277AA= X-Google-Smtp-Source: AMsMyM7seJzz3zFNr42FMx8xm7M4IL1jogyYrji7nkRh70ToH0TPONWm+a0Otxxu1W5AXQ1y/w7zSQ== X-Received: by 2002:a17:902:f70e:b0:178:8895:d1fb with SMTP id h14-20020a170902f70e00b001788895d1fbmr18616861plo.166.1665396767161; Mon, 10 Oct 2022 03:12:47 -0700 (PDT) X-Received: from localhost.localdomain ([49.206.13.138]) by smtp.gmail.com with ESMTPSA id h17-20020a170902f55100b001788ccecbf5sm6302138plf.31.2022.10.10.03.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 03:12:46 -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 13/29] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Date: Mon, 10 Oct 2022 15:41:46 +0530 Message-Id: <20221010101202.1146624-14-sunilvl@ventanamicro.com> In-Reply-To: <20221010101202.1146624-1-sunilvl@ventanamicro.com> References: <20221010101202.1146624-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=1665396768; bh=wSgu6FQiW+1Q75LEO5lRgv76u+vw91y7NfC22ygDTZc=; h=Cc:Date:From:Reply-To:Subject:To; b=vfmuyZKOf3h8TFPY/trOT/07HiS4CNWo4KXIkcH8OznEViiEEwcwDNZNpZJLR952xiX z/pB0B258dH6Nl4+S8bi0iDlLlL+jvDeNJ68sgrm3zTxMx9mvgYqoAbVzW8JrO0wtX9fd Mx8rCx/z1MUIAu3UGZjReDK7jGqBuMskOPo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1665396771180100017 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 (#94912): https://edk2.groups.io/g/devel/message/94912 Mute This Topic: https://groups.io/mt/94233015/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-