From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99A3CC433E1 for ; Wed, 12 Aug 2020 23:48:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 705C2207DA for ; Wed, 12 Aug 2020 23:48:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="FurpFRzZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbgHLXsk (ORCPT ); Wed, 12 Aug 2020 19:48:40 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:52579 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgHLXsf (ORCPT ); Wed, 12 Aug 2020 19:48:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1597276116; x=1628812116; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M/aLmMoaf+R1cfTR4Mi4doOLt0MJCtDnvFjCl4cVqNk=; b=FurpFRzZ2ZuhQ8LvBsxFVzQdS1WLcpb9fG7TJNHQqAgpketbdIP7VPlT IzAIOHtZGOCbowaAclBa0me2gGLLIbUI5OaMvBHNXS2Xio9V0zz7TK2C1 qxXgU+PmWzaWFj0KEq0EffYOpYy+q6ewVfzf0Qb2FBOQ1aZ5DNP1Hf2ou ahRwYwuuhHWO1hj4zYOC/fHMGUuvE2AtzOpmvONNWOguxAQtcTUk93C1u h3+qvl9kbVC/bk/rMdJEGg0TpOz+KMjCJLEtlhdDgj2jyINslY/sLM9P0 E2CF7siRVFozbAEwxMJ7Y9sNPu68/hW84RzSUyDsYqe3XF4qTp25aswMV A==; IronPort-SDR: VdNjFKQlHDSRckQfSy7BZcxq8U5O7GE4e5oHtJX592fhtkGJQ0gzNsA+FQqxsTrhjRRzXaRsIu Q/4agqjSZ5F5cFuJELI7wIB9qf0toc2jjLjxdmYXXF//etrHHAL+cc+n4iK7Kzr6L2Qgk8H1Qe kfnLy6XyMJfONu5aEiuKoPg9lg3v3meWkAiTHDD4USZHPi3pE4trPDAq322w3qFecmF06I0+Fk EO6Zz9MNYQSSAsjy5sWz0hTY7eZt7BSOsMJxKga9dTxk/VZqw6kWSvlp65zJBjncToyDiMWXKp 3QA= X-IronPort-AV: E=Sophos;i="5.76,305,1592841600"; d="scan'208";a="149145669" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 13 Aug 2020 07:48:36 +0800 IronPort-SDR: FfatyBmrFppYGe30QXMu0ENmEv37kR0JnqgMHgV04Iy2MBoa2QXgy8vebztVwrNp4fsOXe57en DErI3Sip2gYQ== Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2020 16:35:42 -0700 IronPort-SDR: P3ovugPv+fDHQa0kXG4xONb+xNMYChSxVI7c1P6E62oC4EfAS3HLQYntJ5lU99kbUACcLa5o7B X4ihSkv+Dn0w== WDCIronportException: Internal Received: from usa002576.ad.shared (HELO jedi-01.hgst.com) ([10.86.59.59]) by uls-op-cesaip01.wdc.com with ESMTP; 12 Aug 2020 16:48:32 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Palmer Dabbelt , Ard Biesheuvel , Albert Ou , Alistair Francis , Andrew Morton , Anup Patel , Arvind Sankar , Borislav Petkov , Greentime Hu , Ingo Molnar , Kees Cook , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, fwts-devel@lists.ubuntu.com, Mao Han , Masahiro Yamada , Michal Simek , Mike Rapoport , Nick Desaulniers , Palmer Dabbelt , Paul Walmsley , Steven Price , Waiman Long , Will Deacon , Daniel Schaefer , "abner.chang@hpe.com" Subject: [PATCH v5 4/9] include: pe.h: Add RISC-V related PE definition Date: Wed, 12 Aug 2020 16:47:53 -0700 Message-Id: <20200812234758.3563-5-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200812234758.3563-1-atish.patra@wdc.com> References: <20200812234758.3563-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define RISC-V related machine types. Signed-off-by: Atish Patra Reviewed-by: Palmer Dabbelt Link: https://lore.kernel.org/r/20200415195422.19866-3-atish.patra@wdc.com Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pe.h b/include/linux/pe.h index 8ad71d763a77..daf09ffffe38 100644 --- a/include/linux/pe.h +++ b/include/linux/pe.h @@ -55,6 +55,9 @@ #define IMAGE_FILE_MACHINE_POWERPC 0x01f0 #define IMAGE_FILE_MACHINE_POWERPCFP 0x01f1 #define IMAGE_FILE_MACHINE_R4000 0x0166 +#define IMAGE_FILE_MACHINE_RISCV32 0x5032 +#define IMAGE_FILE_MACHINE_RISCV64 0x5064 +#define IMAGE_FILE_MACHINE_RISCV128 0x5128 #define IMAGE_FILE_MACHINE_SH3 0x01a2 #define IMAGE_FILE_MACHINE_SH3DSP 0x01a3 #define IMAGE_FILE_MACHINE_SH3E 0x01a4 -- 2.24.0