From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web11.8325.1667136566627080989 for ; Sun, 30 Oct 2022 06:29:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=kl54P0FZ; spf=pass (domain: ventanamicro.com, ip: 209.85.216.47, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pj1-f47.google.com with SMTP id d59-20020a17090a6f4100b00213202d77e1so13779493pjk.2 for ; Sun, 30 Oct 2022 06:29:26 -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=kl54P0FZpeH8dIbuQ85s8yz6Y+iroyxZa909apOEKNaQFZRTEVdXpreexxJRiSi8xd e7ZACU3Dap3G2JJFAbKIt/l8Lvi8zZ3UngHCgZdRq5uxNevwXpam/17APjLUazNQ4Jqc 3sCTqIBkz/BJ/9NpgVdRDQV9VmXZyYK1hk+Vi6NFalm5xtSeb3LscqBvW4tCI1EmWAdL SS6YrFx0LWyL+J1UbxBunpH0sRg7+dlEJCWdkmOyH0q1Ouhe7GlZ/PFhQlviDyLjucgj 1z8LKfDCXpbTa0+LNs3KmON/H8xn5LP5PfUmj5aeRFix3AVAFZtCdZkpafbNoDyT1z8k QEmw== 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=C7Dms6fSwNHOceqvdS3UicY6EtJ02ZP+TmJL/EW/2Dg7GGvuqSrc27rhmgxr7pvT9I ciZx/xzisV5L2dJgBaLldzJLTT9F+4Cl7WubzyeJBYsTHBK0PG2fQIFyM+zbg5svTboi wSp1Rm4W9nORP0WrXQPPOxX6hvUsWrTrkwgL+XC8G4khKWWjRtczqiU6TZ6kMx9RJ+xL 5cfcbC3Zl52XSlE1ZRLmmCldQ7wfm6LMTEODb9cq2Tyz2VyyU3aqzQB5reBbwhuez1Cj DGGI2x9Ibw7xZTiWLXeB03xB57z2fff3GBxFE+97Q3WZ7wPOj1F5wuSDaYYTElX+sk18 G1dw== X-Gm-Message-State: ACrzQf3994tVxUELpOJwP0+k+11McGPDPdiXGf0XVhPaUF4huvHaegY1 76obFjeRIG+BlTfF4TUrdfVoue2eaFAR6g== X-Google-Smtp-Source: AMsMyM4ys5pY+cuN0rA5orJoUtz8jwclSIIFOJWFKwmgDKqQDLyqQTWw2tja73ORVoIRqgIMvU6BrA== X-Received: by 2002:a17:903:26ce:b0:186:9029:fa22 with SMTP id jg14-20020a17090326ce00b001869029fa22mr8995924plb.140.1667136565718; Sun, 30 Oct 2022 06:29:25 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.12.236]) by smtp.gmail.com with ESMTPSA id r10-20020aa79eca000000b0056b6a22d6c9sm2612330pfq.212.2022.10.30.06.29.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 06:29:25 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar Subject: [edk2-staging/RiscV64QemuVirt PATCH V5 13/30] UefiCpuPkg/CpuTimerLib: Refactor to allow other architectures Date: Sun, 30 Oct 2022 18:58:25 +0530 Message-Id: <20221030132842.54077-14-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221030132842.54077-1-sunilvl@ventanamicro.com> References: <20221030132842.54077-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