From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web08.6599.1662550669777864784 for ; Wed, 07 Sep 2022 04:37:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=PNIjXFdu; spf=pass (domain: ventanamicro.com, ip: 209.85.214.170, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pl1-f170.google.com with SMTP id t3so9162657ply.2 for ; Wed, 07 Sep 2022 04:37:49 -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=uDqEOIVP+G0WAJHBrSUV7XcsjEMZZnpdR9bWAfkyqe8=; b=PNIjXFduDzUiu2G1Ai0frJE+yMvTQjnqHgG9g/6zej7ok8PeZVepDBota6DwSLsCpg 8s/+qF6EZHInTPfNOmjfEz0qMAVbqTOXyEHH++4LubMuuWL6mougGAR2fHE/OHnjQm2T wl3flZ83Y/MlPCLVx4BkcshMPznn2JiZIKqwiqoh8bGpVVooYVMdIwiNPVSe0HSCeFgX +aQ2tX/jEnsOwKfnoDrPR+u1u44n0qhXO+w3TznskrO5177ZOJjOoE6iNZT/31ltvQ82 1hEoVjCIIZ9HmKHIn40yQkNQ2svvXnKMkPbtIslToSgYjzaEJ8m2C9zcdDDt48DwNafV 5DMQ== 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=uDqEOIVP+G0WAJHBrSUV7XcsjEMZZnpdR9bWAfkyqe8=; b=zlwCborzzDHDjby97KusBYMdq2AoIo96vgPj3tP/3Rfn66Wv0TlCwC1tiEvTLFeqvq IapIc7/RWjQ8GDVM7klWX0zofZtreK6FoTAb/K9dU11nyNuXjnLwTIdQBGSl8ggpwCaj rYQRYN9+o4COYS8UpN7UxvjQdappUsHyLu9hXSPo1dycHCIwDdf0ZNfdMWfogv9eGWkN MZsKWR0x/01WMm6Jp4U9AcCrQEpfVqRwzfjnYj5v65x6RbkEPd03VT4AXC5h2YwJEyum fe8jIu3Jw5TCpgcdb50geDE3ejvvf9BA00pVo1cNqdJh/M3MWfZndMwL7KGxMzxhnf6C ni4g== X-Gm-Message-State: ACgBeo1X0+YWLocYwFIIidOSPcLtwtOPCbZtf2+eRwL+hEmjri7DS/YE nvAoy1IIHgMc7WhIvYy3iTRdhN0zTBSf6Dlr X-Google-Smtp-Source: AA6agR5ljPiti0awxl0ASUByhkEIPQTwVTBg3BYGkzYqD4DEBAynxj+E+8HiG0bju6cXBGF6kHXhNw== X-Received: by 2002:a17:90b:1bcb:b0:1fd:f2a4:77c7 with SMTP id oa11-20020a17090b1bcb00b001fdf2a477c7mr3468763pjb.87.1662550669055; Wed, 07 Sep 2022 04:37:49 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.11.92]) by smtp.gmail.com with ESMTPSA id 8-20020a17090a000800b001fd77933fb3sm10797230pja.17.2022.09.07.04.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 04:37:48 -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 , Andrew Fish , Ard Biesheuvel , Heinrich Schuchardt , Anup Patel , Sunil V L Subject: [RFC PATCH V2 15/19] UefiCpuPkg/CpuDxe: Refactor to allow other CPU architectures Date: Wed, 7 Sep 2022 17:06:22 +0530 Message-Id: <20220907113626.540065-16-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220907113626.540065-1-sunilvl@ventanamicro.com> References: <20220907113626.540065-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 235241899222..4f2ea42f1612 100644 --- a/UefiCpuPkg/CpuDxe/CpuDxe.inf +++ b/UefiCpuPkg/CpuDxe/CpuDxe.inf @@ -29,20 +29,22 @@ [LibraryClasses] DebugLib DxeServicesTableLib MemoryAllocationLib - MtrrLib UefiBootServicesTableLib UefiDriverEntryPoint - LocalApicLib - UefiCpuLib UefiLib CpuExceptionHandlerLib HobLib ReportStatusCodeLib - MpInitLib TimerLib PeCoffGetEntryPointLib -[Sources] +[LibraryClasses.IA32, LibraryClasses.X64] + LocalApicLib + MpInitLib + MtrrLib + UefiCpuLib + +[Sources.IA32, Sources.X64] CpuDxe.c CpuDxe.h CpuGdt.c -- 2.25.1