Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp795838pxa; Wed, 19 Aug 2020 15:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFunFNsBI/4ZpRapPioHQdnT2pmB6Bj0s0l45llTJ9Ie7YWR4RLxQvi4Ok6R7hY2kqt3VT X-Received: by 2002:a50:ba8c:: with SMTP id x12mr159455ede.319.1597875969308; Wed, 19 Aug 2020 15:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597875969; cv=none; d=google.com; s=arc-20160816; b=dUP7ux3oHxmQ0e8T+/bPmiUWwYSdRk0bCz+8oks1nFCh98ud+m8tijmdny2oakQg9D Nm7F2l8BxY+wSV+VhqtCQt10m4IvLwmK3MQlpSvy2/4XOgd4A5AMpAy4FNPkRXz7AhBY e6R7n5Wi9BLqFYea3m/cCYw6+XO0UlyeRwwVlY41hz+gVy1CLt1HNO1PmzrNK6K4iVkw EztAJZoyv46eR8toYbLEKAQjAD6SW1T2icIKPx8O1Z2GXt2YCB8eXdFVS7PAgTHfInhL EjIrqowmj9ksiGWr0xK74RkZt4OabxCIS29oo7e4F7UD06WUg6f3v+D5WG2HMzye0b/y Dmrw== 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=VAYpeQBIi9h4QUVWYgRrP4+TWn9RkacI2kSTBB9IwBgmoKSr4jKuOhjzTG/AZ6OylF iyCiFD5mXkaYvakWFo7+bEF+3Ovm+B5A+/951tl7iC0LOccREERApw7XLQ3LSnm4DmlV A17NQ6oUn3Bgl7KIH9kLdf4+eBeyzYT1IA1X0G5/t23STEkyCjhV9ltkiPNs5Emx4UjF uKoK4g27e0IBs3JEeY1sue147oZytlmjXmGNJxEn20yRh49DGIgm2weo12rl7x7q8fhk F/M0AdljZrhNfcKt6vgc0FYgUYs4cjKFs3bgfMPTJ/Q2TA/TFWIDWTnTBDKgX9QbYEb0 CBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=XIlJFMYi; 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 bd8si200657edb.477.2020.08.19.15.25.45; Wed, 19 Aug 2020 15:26:09 -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=XIlJFMYi; 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 S1727851AbgHSWY5 (ORCPT + 99 others); Wed, 19 Aug 2020 18:24:57 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:16013 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727892AbgHSWYw (ORCPT ); Wed, 19 Aug 2020 18:24:52 -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=1597875893; x=1629411893; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M/aLmMoaf+R1cfTR4Mi4doOLt0MJCtDnvFjCl4cVqNk=; b=XIlJFMYi8LYfJEI6fFdhEKiJ1SpC1wLprWkfFGRpcOuujbcmGb5ebxZQ u0NYScNVZ5PTeoq+TL9VrcVODD6UAyLrfXtiGpN8TcMLA0qw+PA9bIBzV s6MzpRQYZ0dY3TuXPYL09j2d2uLHv1kt9nCHE3cMMDa8S0DDC24luJu3n PyXD5rsRhs68xkuJYiFTn/q8fU5/X3jr6WxLa+PDTMRKqA1jrRGBP2ExO 5s9EGmItgxs2mOKILpmKLiH1ec/1/mq1BSstQHhfFgsevuP9PGyg3Ncaa VSJTpdzdgA/nDSZx2opvY+Bqp+ZfwoaFAQBJw96KxEGrOzAa+p4JyENKm Q==; IronPort-SDR: itF1sLMymDV99N5YrbMJuFcUFhS6lp6avD8vAXQUPSpRL/LX8clCUTCmCuQFucSg7J3Y55ZGAd xvT24m/XrAI04q2mY/nTByZpcIH8p+CzefQG+RJx4SZ+fErOGbraSU5lNy4ODmaRamHWz6XKON emK8yJU2enzlQzNCwpA0VVvNaUenpkjCNNHzKjh0Livw+LGILgv0HkVXV3+As8DTsry/is03OG YhzCNcO8NO9HxbXbgYHRKlbKWXbfl5VephDajcI5r6YHvFOPt8Eom7Glj6vGlvUkRpoCJ78UvH aaQ= X-IronPort-AV: E=Sophos;i="5.76,332,1592841600"; d="scan'208";a="145373602" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 20 Aug 2020 06:24:35 +0800 IronPort-SDR: Blxsm2MpzXn+vTqeyPJgf/EIqUDlZMIYcdYlYaCVJQOVBbtFuLhDuA87A/shhp9aC9HTt8S58L epqXyRVbUq7Q== 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; 19 Aug 2020 15:12:17 -0700 IronPort-SDR: 1epdToIyuDzZ4UJ/vsNBMIOLC82OPuo1rQZCyeBGFJvRm1nEU/fO6IxiC9Hl/KtZQq6gpQZ0OH X+bF6A7SGjYA== WDCIronportException: Internal Received: from 6hj08h2.ad.shared (HELO jedi-01.hgst.com) ([10.86.59.62]) by uls-op-cesaip01.wdc.com with ESMTP; 19 Aug 2020 15:24:34 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Palmer Dabbelt , Ard Biesheuvel , Alistair Francis , Anup Patel , Arvind Sankar , Damien Le Moal , Greentime Hu , Heiko Carstens , Ingo Molnar , Kees Cook , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, Masahiro Yamada , Michal Simek , Mike Rapoport , Nick Desaulniers , Palmer Dabbelt , Paul Walmsley , Steven Price , Waiman Long , Zong Li , Daniel Schaefer , "abner.chang@hpe.com" Subject: [PATCH v6 4/9] include: pe.h: Add RISC-V related PE definition Date: Wed, 19 Aug 2020 15:24:20 -0700 Message-Id: <20200819222425.30721-5-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200819222425.30721-1-atish.patra@wdc.com> References: <20200819222425.30721-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