From nobody Sun Feb 8 12:38:49 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+95733+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+95733+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1667136551; cv=none; d=zohomail.com; s=zohoarc; b=FDUvIbxp0H2ombAVtcLdZEX2V6yZO5YoZ6bc8Vq8IR3cc5YBGxxQkWYp2UVcqpFV2QAyQS7daKYU+yYoSZRt1XWH/9qDPlwn0hMijrVMBjwl69i8XwO6WkIZh/qmeApps0bzDE1v//0S5aAeHRSV2ASb5KBYCGqcHDAQTial2VA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667136551; 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=cg6sTnXidJEQg9NnXdQCsCF/Lt1P3eNgrd+YUgIoH/o=; b=fdny/DQAQ8dIq0O4ImJ0XlqInFuh1Dg4BfRJvOgnptN6WtvpTbODQxiG3VzYGWFEHOafEnK4Hlvpq68Mnirhq4wFW6vUTeIdJdZrre0VH1SjJKPaLiXz6CqVJsaEM+nrbTGTP2l+kkvZAfPnKZmkg5uMnrLtoUuDuojM1JY90+Q= 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+95733+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 166713655122875.6084286703665; Sun, 30 Oct 2022 06:29:11 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Gr5nYY1788612xfQGq7KNCqV; Sun, 30 Oct 2022 06:29:10 -0700 X-Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mx.groups.io with SMTP id smtpd.web09.8114.1667136549299319147 for ; Sun, 30 Oct 2022 06:29:09 -0700 X-Received: by mail-pl1-f171.google.com with SMTP id u6so8640165plq.12 for ; Sun, 30 Oct 2022 06:29:09 -0700 (PDT) X-Gm-Message-State: m8AzpVshQXGtqTyPXoTcAxFzx1787277AA= X-Google-Smtp-Source: AMsMyM7jil9Ha3pYhsfz8TRW6o5z/Op44fr7xkTfcxEb033F1JeLjxZn3n+V9HQcsWk2Idl15Czhgg== X-Received: by 2002:a17:90b:254e:b0:20b:7e26:f0a0 with SMTP id nw14-20020a17090b254e00b0020b7e26f0a0mr26254336pjb.203.1667136548468; Sun, 30 Oct 2022 06:29:08 -0700 (PDT) X-Received: from localhost.localdomain ([49.206.12.236]) by smtp.gmail.com with ESMTPSA id r10-20020aa79eca000000b0056b6a22d6c9sm2612330pfq.212.2022.10.30.06.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Oct 2022 06:29:08 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann , Rebecca Cran , Peter Grehan Subject: [edk2-devel] [edk2-staging/RiscV64QemuVirt PATCH V5 07/30] OvmfPkg/ResetSystemLib: Refactor to allow other architectures. Date: Sun, 30 Oct 2022 18:58:19 +0530 Message-Id: <20221030132842.54077-8-sunilvl@ventanamicro.com> In-Reply-To: <20221030132842.54077-1-sunilvl@ventanamicro.com> References: <20221030132842.54077-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=1667136550; bh=Qfc8s9s38U0GIQu8k6zUfZTtHHYSE06ysJ682WYjIZk=; h=Cc:Date:From:Reply-To:Subject:To; b=wrcNq2BM1VnitnjPZ/6r6F/7hgaepSXHIzaSkwFEpKfyzWKdcRaLI3l5U+yNkf+gSF6 xT2liw9XWwmD7q3lYbvyJLwn4ckMITAA+dAtYWey/heoPMb68NWjvM2cLfVsPuMlb5b2z /mLYCg6hssp4txL5XU8+Us4IUl37D1Fu5SU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1667136552006100029 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4076 Currently, the ResetSystemLib library supports only X86 architecture. Refactor it to allow adding other CPU architectures like RISC-V. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Cc: Rebecca Cran Cc: Peter Grehan Signed-off-by: Sunil V L --- OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf | = 6 +++--- OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf | = 4 ++-- OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf | = 2 +- OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf | = 6 +++--- OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf | = 4 ++-- OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/BaseResetShutdown.c = | 0 OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/BaseResetShutdownBhyve.c = | 0 OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/DxeResetShutdown.c = | 0 OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/DxeResetSystemLibMicrovm.c = | 0 OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/ResetSystemLib.c = | 0 OvmfPkg/Library/ResetSystemLib/{ =3D> Ia32X64}/ResetSystemLibMicrovm.c = | 0 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf b/OvmfPk= g/Library/ResetSystemLib/BaseResetSystemLib.inf index 35d317f1e0b3..a554c6b68cfe 100644 --- a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf +++ b/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf @@ -21,9 +21,9 @@ [Defines] # VALID_ARCHITECTURES =3D IA32 X64 # =20 -[Sources] - BaseResetShutdown.c - ResetSystemLib.c +[Sources.IA32, Sources.X64] + Ia32X64/BaseResetShutdown.c + Ia32X64/ResetSystemLib.c =20 [Packages] MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf b/O= vmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf index 74124aed38e8..882a8767cfa5 100644 --- a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf +++ b/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibBhyve.inf @@ -25,8 +25,8 @@ [Defines] # =20 [Sources] - BaseResetShutdownBhyve.c - ResetSystemLib.c + Ia32X64/BaseResetShutdownBhyve.c + Ia32X64/ResetSystemLib.c =20 [Packages] MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf b= /OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf index 564b1d3022a6..8e73ac256bc7 100644 --- a/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf +++ b/OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf @@ -23,7 +23,7 @@ [Defines] # =20 [Sources] - ResetSystemLibMicrovm.c + Ia32X64/ResetSystemLibMicrovm.c =20 [Packages] MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf b/OvmfPkg= /Library/ResetSystemLib/DxeResetSystemLib.inf index a9b4ce90000a..acf9c6a93552 100644 --- a/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf +++ b/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf @@ -23,9 +23,9 @@ [Defines] # VALID_ARCHITECTURES =3D IA32 X64 # =20 -[Sources] - DxeResetShutdown.c - ResetSystemLib.c +[Sources.IA32, Sources.X64] + Ia32X64/DxeResetShutdown.c + Ia32X64/ResetSystemLib.c =20 [Packages] MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf b/= OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf index ac9c2599642c..918c8262fac7 100644 --- a/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf +++ b/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf @@ -24,8 +24,8 @@ [Defines] # =20 [Sources] - ResetSystemLibMicrovm.c - DxeResetSystemLibMicrovm.c + Ia32X64/ResetSystemLibMicrovm.c + Ia32X64/DxeResetSystemLibMicrovm.c =20 [Packages] MdeModulePkg/MdeModulePkg.dec diff --git a/OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c b/OvmfPkg/L= ibrary/ResetSystemLib/Ia32X64/BaseResetShutdown.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/BaseResetShutdown.c diff --git a/OvmfPkg/Library/ResetSystemLib/BaseResetShutdownBhyve.c b/Ovmf= Pkg/Library/ResetSystemLib/Ia32X64/BaseResetShutdownBhyve.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/BaseResetShutdownBhyve.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/BaseResetShutdownBhyve.c diff --git a/OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c b/OvmfPkg/Li= brary/ResetSystemLib/Ia32X64/DxeResetShutdown.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/DxeResetShutdown.c diff --git a/OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.c b/Ov= mfPkg/Library/ResetSystemLib/Ia32X64/DxeResetSystemLibMicrovm.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/DxeResetSystemLibMicrovm.c diff --git a/OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c b/OvmfPkg/Libr= ary/ResetSystemLib/Ia32X64/ResetSystemLib.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/ResetSystemLib.c diff --git a/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c b/OvmfP= kg/Library/ResetSystemLib/Ia32X64/ResetSystemLibMicrovm.c similarity index 100% rename from OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c rename to OvmfPkg/Library/ResetSystemLib/Ia32X64/ResetSystemLibMicrovm.c --=20 2.38.0 -=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 (#95733): https://edk2.groups.io/g/devel/message/95733 Mute This Topic: https://groups.io/mt/94664300/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-