Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp263246imu; Thu, 8 Nov 2018 19:17:43 -0800 (PST) X-Google-Smtp-Source: AJdET5fqp+3ayluBFQQ92pbHJNgXNfhCfglNQqvW67iIqnnvIp6Xxz2ssm0Kwhu1LF/ntsE8qsmC X-Received: by 2002:a63:4044:: with SMTP id n65mr5888429pga.90.1541733463687; Thu, 08 Nov 2018 19:17:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541733463; cv=none; d=google.com; s=arc-20160816; b=epYgo8hmEwAe+5lGj9EJdBTPm8La1MIKxa2nz5iVSWm5zQ8tGxKE2ewuEfoYWcfOey /N9BEJfHrchCKNntx/LLKzxcoZFX/6xzgHUFukC+vtfzg0/hmlQiS4/hQk4JBKIX731A tW5+tNqAOYI4wmyGuJr6R1R4uol15xj7JLCKyZxjgEQH5i2zkPRDNUpZUEs1FyhPFMOd gWYt7/MH5gxDrYnCHgwXvqIPjyHXfST3XrHJtd6k5UndFtw5P1dd0R2QIV4nSBmHjAky cwkLwzN38EfPtreddxSqLbQXHQQ75co1YGLpt2Uk02LMOck6OrCNQFRrWbGC5m4O+mfl sA7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:mail-followup-to:message-id:subject:cc:to:from:date; bh=Ag1B7bzCkQkXreZitXbu+r1qYqJHx2EhOozMDXbudcU=; b=MhRJv0rfOKmwwBi8F7Qb6P1JOOT45fVvFHE2U0DhH6AW2i6Pnq0PtG1jsUovszligH S504pIatVub/Cm1g04MogdsUIF9Ctj7LnfUI5V0ip0NQ3Yx22C3nrGamf+wwyu+xQDWy oePBuGzIF4HqOwQWeQF4xzr4ih1zqUXyYFVeJw5VRZ9xyfG41LbB9jXaz3IBHRxBEwrk BsWxyFceGrvoUJ+shNsZ9GwPja3boEUjIygCCGykHBYyPXiWTf7YSFgV0aljbqUIuhXP 830BDZz0Q8BQDK4BSthz16H3GbV2Di7+9A4ByWCIa55bZnVqqpp6IaK6HQyDWxNZXOwd EP0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2-v6si7086032pfb.66.2018.11.08.19.17.28; Thu, 08 Nov 2018 19:17:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbeKIMyX (ORCPT + 99 others); Fri, 9 Nov 2018 07:54:23 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:48024 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727238AbeKIMyW (ORCPT ); Fri, 9 Nov 2018 07:54:22 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id D7F0C72CC6B; Fri, 9 Nov 2018 06:15:44 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id D0E387CD1FF; Fri, 9 Nov 2018 06:15:44 +0300 (MSK) Date: Fri, 9 Nov 2018 06:15:44 +0300 From: "Dmitry V. Levin" To: Andy Lutomirski , Greentime Hu , Vincent Chen Cc: Elvira Khabirova , linux-kernel@vger.kernel.org Subject: [PATCH 03/13] elf-em.h: add EM_NDS32 Message-ID: <20181109031544.GC21511@altlinux.org> Mail-Followup-To: Andy Lutomirski , Greentime Hu , Vincent Chen , Elvira Khabirova , linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109031303.GA20906@altlinux.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The uapi/linux/audit.h header is going to use EM_NDS32 in order to define AUDIT_ARCH_NDS32 which is needed to implement syscall_get_arch() which in turn is required to extend the generic ptrace API with PTRACE_GET_SYSCALL_INFO request. The value for EM_NDS32 has been taken from http://www.sco.com/developers/gabi/2012-12-31/ch4.eheader.html Signed-off-by: Dmitry V. Levin --- include/uapi/linux/elf-em.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 56ff3f9d9633..f879c24a7c21 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -39,6 +39,8 @@ #define EM_ALTERA_NIOS2 113 /* Altera Nios II soft-core processor */ #define EM_TI_C6000 140 /* TI C6X DSPs */ #define EM_HEXAGON 164 /* QUALCOMM Hexagon */ +#define EM_NDS32 167 /* Andes Technology compact code size + embedded RISC processor family */ #define EM_AARCH64 183 /* ARM 64 bit */ #define EM_TILEPRO 188 /* Tilera TILEPro */ #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ -- ldv