Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp125254ybt; Thu, 25 Jun 2020 17:08:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAIPa8ReGo9dBC0vcir1clo872BNZoBqb6NI6adH124wv2ikV7wV5pMXucFxm2ZupQ5V64 X-Received: by 2002:a50:934e:: with SMTP id n14mr799861eda.88.1593130080308; Thu, 25 Jun 2020 17:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593130080; cv=none; d=google.com; s=arc-20160816; b=mivKZ/IQaUToigXMZ6iHIHbH4yVOkWa4UBlaBfM8Gsn2qV3cHsMfA3e8krbKUMcDoy k9tiK17pJlhDEeHY9cOQUnxErmnaOfF+grkOLh9q1/7X861HjHFj4gOfATT4xR7hPb7D YjgJ+NCalELVOp8KZJVh0I7M5S1v3i8HH/oz5Pc/YXvW1QEMdY/mVfTtwgDNdbljz2pN lmESu8kvp/ks4Dalddhh9Eax1sN5orDswwjdIfC+lOP9Exdk0YSWe7As901eW3wJVrbp 2GPiGHj6fMNbV4JowjmaYq8IcgQhtbpWGMLNK+d2ow17eNHd43DZN2VufNb6L8IsDiok w+ug== 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=seqsJWdBIoi0jNbQj22ju9uoBCwj8x7dcncvf98wLltEY/bpYV3ywkiqzXLt+TdPmk viaM6gnNTdBwbLulyJ5TAiN7Mu2XJisWfDuJ5BPqBHIyHuAfue2/4dfESbRhLrrLuX3/ UEtZsenJJXURY+ryIqJfqVqAZeldlSSzF1Ok+SkBGe53I5ZTPJYHY3BtNB0hPpuIklUc H1e/N3UrTC3AxHEObbmnvwqKcU+iRfcCWzer/0YpLfYyrnxfFM/JemTTsuOiq8FEiRjK fvpfKJoSeAG4oJt/3QxxV9a9nf+4njh4RsqYs0JH6y1GJIL1Frf6QRoZxcrYAgAoH8PP mctQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=hejhZixO; 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 v12si3376006eds.85.2020.06.25.17.07.35; Thu, 25 Jun 2020 17:08:00 -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=hejhZixO; 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 S1726607AbgFYXp6 (ORCPT + 99 others); Thu, 25 Jun 2020 19:45:58 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:4093 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726403AbgFYXp3 (ORCPT ); Thu, 25 Jun 2020 19:45:29 -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=1593128728; x=1624664728; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M/aLmMoaf+R1cfTR4Mi4doOLt0MJCtDnvFjCl4cVqNk=; b=hejhZixO4l/dG2gmpj+wQ772nvwNsZrsdT9uuagyDXwYksiO29jdpo8L Np2lEiQI9WyH/VGRtenXV3ms3hP3laxKsKaYFZwO548Fy+4C+pHNkhM4I TrfRwSGNpnAWQIXIy7s308rQhWAVEpod1s+DrOk6m6pLirLM68AvHeRWI 74U4CoEXVhSzm9g5JbXd0FytelzGuRBsA4dGnGi+Go2GrgUqKwIVERj+k vQXZ0K8x4aWGnSnmosxgwSBhBFq+MttV6xVyaccjTawhopSKhUkz/RQWG St95oZTNoS4v8PGI6RC+tn+q3vxkgMsiN5u4iBNY0FzlJfarcmXRc5LW7 g==; IronPort-SDR: 9H6UgJJP6yyYX0w6rCJ4g8kia7YTJu/5AiiQJA7uTfG9K15co5mpZvmEwIl/pwakjC1YyOviRf 2JRzBW5WwtEu6Dxp208/6a5mfuDnqAtXm6WV/92Ok2u9R18HAXF56U77jHKVOD1WErKIb8FO10 bYQ4sL+AyAjuvt2CulllrzLwyIULz9mMzhxmerGaJNOHVlzsR0oBDT5lDV9njJlCDoPONuQUWw nTrALwxyv0dgSoho+RYkFkccyJisbKmfcsZVF6Tg4Z0Tj/sxmkNcsZFIVv4xNNOZH+akFLW6Mm POY= X-IronPort-AV: E=Sophos;i="5.75,280,1589212800"; d="scan'208";a="140953464" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 26 Jun 2020 07:45:27 +0800 IronPort-SDR: 2nboY54Evh/Vyz4d0NwWoyGAolDfH5VmMn5Ltd7JOkhkOmoxaBLZpnMY3+3ck90eTzHTNaeJe2 TN4fQMaOqaGmQrh+ncMfY6S7QtcqXFZQA= 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; 25 Jun 2020 16:34:27 -0700 IronPort-SDR: rsP8xzULUfBFMDuMCtJGe0TMaOrFxT6DTyZwDjC5tdJA7trEYutCByptrNB4uMfLlWXegYkKzb pktVpb+3JPPA== WDCIronportException: Internal Received: from 2349pbt5e4f.ad.shared (HELO jedi-01.hgst.com) ([10.86.58.78]) by uls-op-cesaip01.wdc.com with ESMTP; 25 Jun 2020 16:45:26 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Palmer Dabbelt , Ard Biesheuvel , linux-efi@vger.kernel.org, linux-riscv@lists.infradead.org, Masahiro Yamada , Palmer Dabbelt , Heinrich Schuchardt , linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 07/11] include: pe.h: Add RISC-V related PE definition Date: Thu, 25 Jun 2020 16:45:12 -0700 Message-Id: <20200625234516.31406-8-atish.patra@wdc.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200625234516.31406-1-atish.patra@wdc.com> References: <20200625234516.31406-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