From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.8771.1675426266509438266 for ; Fri, 03 Feb 2023 04:11:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EqzzRLcQ; spf=pass (domain: kernel.org, ip: 139.178.84.217, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C3C361EE8; Fri, 3 Feb 2023 12:11:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AA44C4339B; Fri, 3 Feb 2023 12:11:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675426265; bh=euJA8H1EwyE/moJB54hrooGSeU4X+E6HWdIN5uZx+PI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EqzzRLcQs3o4+H8oSsQ9oubjKS+bJjI6+LuDRYfgU1jrFtClxwhMraSgb0/06e1kV bBO/LCLRLgZO8xGsgq0vtL4UHxdELTWM1KAwV62Kw+XO9lOXJXLm9tID4Kk11GdrQe RCQzr0NxAfLmbwXBVoy/Tv8Ajlb6NCOUiSogE6QCyyI7aTuaNoMbXQ77nUF+kF/u+r 8L/chN9Sp6grlFlxabseWvhyuKwOkqnZ9vTkLXqRZxk3bIebJoTVlbWjrb6VBg5Bm4 WPRB1aeGUR9GQSs2ZiQpf9FOuXUNeds0bIxTOY6KAC6AqIDKJsGPuKEYLyEd1SgPhI Xg56dRxfIu5Ig== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Michael Kinney , Liming Gao , Jiewen Yao , Michael Kubacki , Sean Brogan , Rebecca Cran , Leif Lindholm , Sami Mujawar , Taylor Beebe , =?UTF-8?q?Marvin=20H=C3=A4user?= Subject: [RFC PATCH v2 2/7] MdePkg/BasePeCoffLib: Move RISC-V definitions out of generic header Date: Fri, 3 Feb 2023 13:10:24 +0100 Message-Id: <20230203121029.2451394-3-ardb@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230203121029.2451394-1-ardb@kernel.org> References: <20230203121029.2451394-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Generic headers should only contain arch specific definitions if really needed, which is not the case for the RISC-V based opcode immediate parsing constants, so move them out of BasePeCoffLibInternals.h. Signed-off-by: Ard Biesheuvel --- MdePkg/Library/BasePeCoffLib/BasePeCoffLibInternals.h | 9 --------- MdePkg/Library/BasePeCoffLib/RiscV/PeCoffLoaderEx.c | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoffLibInternals.h b/MdePkg= /Library/BasePeCoffLib/BasePeCoffLibInternals.h index aa86a54850c6..4a43ec236529 100644 --- a/MdePkg/Library/BasePeCoffLib/BasePeCoffLibInternals.h +++ b/MdePkg/Library/BasePeCoffLib/BasePeCoffLibInternals.h @@ -17,15 +17,6 @@ #include =0D #include =0D =0D -//=0D -// Macro definitions for RISC-V architecture.=0D -//=0D -#define RV_X(x, s, n) (((x) >> (s)) & ((1<<(n))-1))=0D -#define RISCV_IMM_BITS 12=0D -#define RISCV_IMM_REACH (1LL<=0D =0D +//=0D +// Macro definitions for RISC-V architecture.=0D +//=0D +#define RV_X(x, s, n) (((x) >> (s)) & ((1<<(n))-1))=0D +#define RISCV_IMM_BITS 12=0D +#define RISCV_IMM_REACH (1LL<