From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mx.groups.io with SMTP id smtpd.web12.9578.1665766158842515161 for ; Fri, 14 Oct 2022 09:49:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=W9troIWf; spf=pass (domain: ventanamicro.com, ip: 209.85.210.173, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pf1-f173.google.com with SMTP id i3so5393364pfc.11 for ; Fri, 14 Oct 2022 09:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0AcRXPaS6SsBbxs1BUGpfCZ0TolkmIOfZR7RfS7pB1g=; b=W9troIWfgnJiLp4xPogRExdEw3fmbJqDpWP6NuxMRFsLUJ/rEFWJuIsUA+0cNfmA8C AWrDq68FixGAtbFRwl63W6Yd7I9KJiUUlY55JfkSyICNa+yYbV6od4hjHQmwuRfJSclN OgXkX26sVipLuqTNyvU1S/qvQS+MzA2jmlT7s06k8BQG0awjtkCHxA3mRf/wpWRAz+mi ugIe7iCnPuirYAT9LMDNogEGr9ZdY3SPzJCzNti3q77POrYzrvPYk+zZ0lpuiE2dkwyZ DdAnTlZtfiYkrThQumnnZ6abRgr64LRHqpxI9co+wo9CdXBa+BHAVxrAjpXoVO1ODoI5 a26g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0AcRXPaS6SsBbxs1BUGpfCZ0TolkmIOfZR7RfS7pB1g=; b=8NKSwd5omrSI3fRApHWi9wY1QrdQivLBlv9C0qW2iX0y4XA2ZN7/3ggyvP2HcyZuV+ eegQ/gYIvX4iUfTe+Fjjvrlm8OZH0uFo1RAoNFlBB9Bphixd/t//vwX3KX98mIvldlaD 9AO0MWFnYwikyFpeXyUBotk+AGlfnFThIRqRSHweZ1YLSBQ/vjT++gDnrENknGu4bUH2 WjgpngU2XwRam+N3vxfajTMxwR2TL1iMHSlpuHcjmjHWephz9i4MBgdKHXd4NU609EGN h8Spvlj3zoZWNqhphq7ZDDGg4pwlGjY/2YvAfKDH45+ORXT0GN9We7iop59SrBNQu7Om H0EQ== X-Gm-Message-State: ACrzQf2mHyenMqFie/A4dMqrK5BEFqLZmigOYDNUFwKmAJS/DpVeAld9 xq+DQEWXN8fvcZS+Vqiltmp+50l95m4l0Q== X-Google-Smtp-Source: AMsMyM52bBxvJREXUai6H4ZBaEriohuAY6LINCdYOV+ZX0Yyu/7ATlnBcY0J0lWpP73me9QwNgUTtw== X-Received: by 2002:a63:c004:0:b0:463:9c29:429 with SMTP id h4-20020a63c004000000b004639c290429mr5281576pgg.379.1665766158055; Fri, 14 Oct 2022 09:49:18 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.13.138]) by smtp.gmail.com with ESMTPSA id f3-20020a62db03000000b0056265011136sm1963368pfg.112.2022.10.14.09.49.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 09:49:17 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-staging/RiscV64QemuVirt PATCH V4 13/34] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Date: Fri, 14 Oct 2022 22:18:15 +0530 Message-Id: <20221014164836.1513036-14-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221014164836.1513036-1-sunilvl@ventanamicro.com> References: <20221014164836.1513036-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4076 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 +++--- UefiCpuPkg/Library/CpuTimerLib/{ => Ia32X64}/BaseCpuTimerLib.c | 0 UefiCpuPkg/Library/CpuTimerLib/{ => Ia32X64}/CpuTimerLib.c | 0 3 files changed, 3 insertions(+), 3 deletions(-) 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 = TimerLib MODULE_UNI_FILE = BaseCpuTimerLib.uni -[Sources] - CpuTimerLib.c - BaseCpuTimerLib.c +[Sources.IA32, Sources.X64] + Ia32X64/CpuTimerLib.c + Ia32X64/BaseCpuTimerLib.c [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