Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1512946ybg; Wed, 29 Jul 2020 16:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6CyQjcsLVT3GQym7A3eZ8x1ZFjXJvKME9Icm+fZ1cpuJaE1G1yDxtKOLKLrvA6HJbDqox X-Received: by 2002:a17:906:2f07:: with SMTP id v7mr13554eji.313.1596066038597; Wed, 29 Jul 2020 16:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596066038; cv=none; d=google.com; s=arc-20160816; b=Wstpa+Pw/zrp9M5W1GQsp5uNsvaLJXfTVBSxIlroXpvB2lRTdAs7O0iFG0+vAhRAaH MzYg8Bb00PAmnmOoJ9TJ+yQlpZP3EaAzozfvfwQadR2M5LVgdc3IixWnDdO82Uiw/IqX 0ZA5Uj+JyOOFKGiu0WFS8qSLTNm+7WE0VWgVQzpx7cDH7rQ2mX0WeRTHtux8FekqfSCO iMpH3iHukRgjtxscXD9eZrIApZ6daZDqTuqPsBdp1k6QPqWjMhmkYy0DB5bbKFIL/ZPt Z8arxVyffl0LjR+8jJQUbkYA7sRdHebYBqQCLV7enXWCzndcZNE2DAI7eUll3oRju6N4 MoXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=414qgzDRxydgst88b30B8sKhTLrXbULBQpCILqxLjVU=; b=0LUPXCw9bF5Dx6OMObqlvttB8SArRxzCiaaGPwHk1qfunrw0kMNhh7Vp44+Ri6FtaJ JxZaW5cX7x/WQlI2PalCX8ua/Nd4KfCxUzJB6v85+2MK1NlC+itsIKp3MX4n52JAnvhA fHcEsengItsuWAkhRVheLCS04jLcedUoD848TAcgJrPg/PVpuuYpSpLSjCsRd9QSSnDB G/K8umylGNOHdosxmNBVc1tciuOHL+CEBcPsStKoRjWauFMFTlJ8YyCVvM5gayTKTpFs sXXofkt+AX2nnimYq7s4HRQbpHjosVAeLCBPRYLO0k0Z9VtF1YJ6fj6zN1ZHjUdf7hfD RHUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ZwJJAX47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si1940762ejh.86.2020.07.29.16.40.16; Wed, 29 Jul 2020 16:40:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ZwJJAX47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728232AbgG2XhT (ORCPT + 99 others); Wed, 29 Jul 2020 19:37:19 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:22290 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726718AbgG2Xgz (ORCPT ); Wed, 29 Jul 2020 19:36:55 -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=1596065815; x=1627601815; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M/aLmMoaf+R1cfTR4Mi4doOLt0MJCtDnvFjCl4cVqNk=; b=ZwJJAX47S/JMpfxMjORre7gBBOLM/av53Wg3HMlHXbVOSUfNGy3u+sda krLrtwzqyith94Zu9K9+BnPcRbXia/lcQsZOh10EBjvQvLBW0vqXrdE6U GKHKy8BKdpc7M5TTcyWi1yqYhkUfx37QkNbF/Snt1D6UCCNg/KNHrxquD H3w+cMTlpV13IIfD7IHSrHUf3L4UCEM7DwXuMv4aWlupXBOS8UawmShAO ACR13BtfIfU52b5Au8iU+ypKlXhXYHgcMcKIj22PDErJRzIF8WQbnt0Ed DNQrZB6Z04+KkDZZzZmUKaHhb3dW77e5vqe2T1ICZRD0G912UoX0o+59h A==; IronPort-SDR: bHK89hTRJeeke1cx75lo8+BvuYK7+81yDjLxoz8anDSa9bCxzBjJUdK4LDePAQi8qSO2waZRpM yPNBQXqEIh5//tDfHiSHB8WOR+d+MhJK3iLcQYIssBibmQOMCPUoMGlR38/GUQLW+FSS6JiQOf YKOC1Fsojdcw5L82jq19uiIxjVGQ+/E6VvCsDygRd6b/N3FxUy4OQqFk91gvHWUhIQeH1JzVEt nFLQwpLVR+556IK+IAl5dhTMY1YZG2P4Wvm/Fzpd9lLulq/jk4qi1txAHa9I3amJlPPOWcgvIE 9fk= X-IronPort-AV: E=Sophos;i="5.75,412,1589212800"; d="scan'208";a="144951804" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 30 Jul 2020 07:36:55 +0800 IronPort-SDR: 57K1AXauuRMMA9TXuY9tt0RsZFWhKhpdPqIkZpNTerUaoxmztpghRLtRb4QRyavutYIns1ucNw gpCUxbf/0I2CbcqL+Me2AfRE02kW8Jww8= Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2020 16:25:02 -0700 IronPort-SDR: jl9KKWRuX6o+x8EQ503ka+/veCrEXiFcusdtj+sSoVDP1zToRbSi7am3W7Eg9UsAaTXR81Cm24 ty0Zbev3UtFA== WDCIronportException: Internal Received: from jpf009043.ad.shared (HELO jedi-01.hgst.com) ([10.86.58.210]) by uls-op-cesaip01.wdc.com with ESMTP; 29 Jul 2020 16:36:55 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Palmer Dabbelt , Ard Biesheuvel , Anup Patel , Arvind Sankar , Greentime Hu , Ingo Molnar , Kees Cook , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, Mark Rutland , Masahiro Yamada , Mike Rapoport , Nick Hu , Palmer Dabbelt , "Paul E. McKenney" , Paul Walmsley , Thomas Gleixner , Will Deacon , Yash Shah , Zong Li Subject: [RFT PATCH v4 4/9] include: pe.h: Add RISC-V related PE definition Date: Wed, 29 Jul 2020 16:36:30 -0700 Message-Id: <20200729233635.14406-5-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200729233635.14406-1-atish.patra@wdc.com> References: <20200729233635.14406-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