From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web12.1922.1662484200710974135 for ; Tue, 06 Sep 2022 10:10:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=P1QGHvM9; spf=pass (domain: ventanamicro.com, ip: 209.85.216.46, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pj1-f46.google.com with SMTP id n65-20020a17090a5ac700b001fbb4fad865so12056501pji.1 for ; Tue, 06 Sep 2022 10:10:00 -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; bh=42SCgAqxSRm2DUeeYMXGg/9cuFcI0lu4FjCnoYBjZmo=; b=P1QGHvM9Ux9HZooqr8dDebtXT81oJUL2RuSdvH5fTDj3piJDTq10pftoS/rKm9Zkaq xnjJ3dIh8M52/IKVkxvCPDFn+IoPOiidQ7xbyJltO8t+jZAENXBmF/J7z9poOvosOBdA FRH1J499vtsmrz2S7VKKJeQlXRq0WEy/+Uyq1H82REA7owIxeRgr2Q7NzJv9NR3+BJeg Oa04ZjavDS37peR5XnKvmHmCjLmYpq8hAf4kPPpnb8nKw8EWw36KQrnmpX5UTVYwVSj/ Y2MdZWL+2SqPfxw1oHEdfm7v0a71TyCpPG8FSG0UDliZQEGzII3ytr7LgJAHMz7KxV33 vu1g== 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; bh=42SCgAqxSRm2DUeeYMXGg/9cuFcI0lu4FjCnoYBjZmo=; b=h4W9dcUkYKtt+QTceVKFC1tiJjZCNPfSfqFGn7AhQ26VaFyKQViu1BHf0x952OVzWJ egExJBjrQF2GlxuBdmPPYGKYfWksC1fBT4onwdhQOebmXJYzqSUb5UCfiITLvUABdL43 zQGSzOop+CMIUWNnwASsRmBpZ5Tkfh6k5EglxU4rQFICs+c1eOm6E/WhdhV7aJvJ5Cnl ZpTf7WpAo1QB9t3kfvrN8zJLsYkiRlIu+Dm6W2zMT1sYDjp9DiF4HtPumZ3t+H206auf JDbq+jG1tC1an7lxIVa6tdKdUI9ZuRDzd8yYIKEPBqFP1LrrUerIR7eDlYi+kx41PQfB lA3A== X-Gm-Message-State: ACgBeo3MXQhGH67gFJldVbsYwEbK6bqtuVoYEJkuBijstGHjn4MpQVrx JqDHUhZbeH6aC29nybNTA5abMMiCdyX+lFra X-Google-Smtp-Source: AA6agR5Wn1puNIBoq9Uhup4Sp2NgKjd2ioF0iS3NLpyYjsgIwDQ1XcHcHTcLvLQIF2Sv6RUhYg6nVA== X-Received: by 2002:a17:902:8ec7:b0:172:ac9c:4757 with SMTP id x7-20020a1709028ec700b00172ac9c4757mr54541299plo.163.1662484199827; Tue, 06 Sep 2022 10:09:59 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id b17-20020a170903229100b00176be258f41sm3806567plh.91.2022.09.06.10.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 10:09:59 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Jian J Wang , Liming Gao , Eric Dong , Ray Ni , Rahul Kumar , Debkumar De , Catharine West , Daniel Schaefer , Abner Chang , Leif Lindholm , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH 15/17] UefiCpuPkg/CpuDxe: Refactor to allow other CPU architectures Date: Tue, 6 Sep 2022 22:38:35 +0530 Message-Id: <20220906170837.491525-16-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906170837.491525-1-sunilvl@ventanamicro.com> References: <20220906170837.491525-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Currently, CpuDxe driver is mostly x86 specific. Refactor the INF to allow other architectures like RISC-V. Signed-off-by: Sunil V L --- UefiCpuPkg/CpuDxe/CpuDxe.inf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/CpuDxe.inf index 2352418992..4f2ea42f16 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.inf +++ b/UefiCpuPkg/CpuDxe/CpuDxe.inf @@ -29,20 +29,22 @@ DebugLib=0D DxeServicesTableLib=0D MemoryAllocationLib=0D - MtrrLib=0D UefiBootServicesTableLib=0D UefiDriverEntryPoint=0D - LocalApicLib=0D - UefiCpuLib=0D UefiLib=0D CpuExceptionHandlerLib=0D HobLib=0D ReportStatusCodeLib=0D - MpInitLib=0D TimerLib=0D PeCoffGetEntryPointLib=0D =0D -[Sources]=0D +[LibraryClasses.IA32, LibraryClasses.X64]=0D + LocalApicLib=0D + MpInitLib=0D + MtrrLib=0D + UefiCpuLib=0D +=0D +[Sources.IA32, Sources.X64]=0D CpuDxe.c=0D CpuDxe.h=0D CpuGdt.c=0D --=20 2.25.1