Received: by 2002:ac8:1418:0:b0:3ab:920c:4c8b with SMTP id k24csp1065164qtj; Fri, 20 Jan 2023 06:25:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJhs/UrsfX5kV1OX3hPJEadVb8nF6uOoYSgCANccQSN7JaXj1bv2ft1SXyGSCJCrEQnXuB X-Received: by 2002:a17:902:f60b:b0:194:a663:675b with SMTP id n11-20020a170902f60b00b00194a663675bmr16037684plg.19.1674224724561; Fri, 20 Jan 2023 06:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674224724; cv=none; d=google.com; s=arc-20160816; b=kgcsB/8j/1HVvbz4Rnp0lIkZJEXjpuJDjmzuyuoQ6zLGZu7EaLdxvZMtwa6imq6dTR lvdYHjjzybEkxV0LiXGjLAfflIHaNrtlf1I/UTS3AwkMErN433Inu+UYf/W899xLz+OW IE7NKXjtHkgoJIDLNN/aK/rWvg40aYLva+HJu0XqB2HoizTcA12UqN7YcZXJra6FwYLf cjjQ3LdBS5QcVGWFMNAPJyN0UkzxXu1NFeJAabPIaXi7cqnACOZKlP62AMbP+LqpqSuu 08HmmHjUP+n0wlkEOmHROCRogRoIVX0vok5FZ6hj5OXwqa2LyKVg47KOHFvNYfqT40q7 JeMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:secumail-id:dkim-signature; bh=8O9GfbQdEK8ARR2TzQy5WdNUqiHWxk+t6PyuioGvpWE=; b=WYM2jgvyTAMQZ9e1JDp3qW1Spv37F7FKtt8/VQRxri/u+M+oFCWWS4MVrCm6GkngWZ O2H7JA97Ceb3lpVHnitDH3B6YcE0bRgArL8xD9MlDytWbxC98QrFbugt9N8sfY8QNY/9 1Hy/u/85PT/f/+VA3CbHFqJlFg2Ltck3Mkl72R44Xqad44noJHEeetENDyPbOfGsdwWL RQXoBmfAT3qwS6q5xUyo/mGVhNshPk1sKXmZ0O9RNBZIxAu7SyNxWkwJNxj5Czw2nm+1 WlTex8oopZptBcI5f9WdcuVrqpgjt0hd37Gi/HEuVOg1HgabdO8MqdzxqCDlw+i97a3U 47Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=arMV4G4c; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=MHdrSbZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a170902ea0900b00192f6c63f54si46128712plg.502.2023.01.20.06.25.18; Fri, 20 Jan 2023 06:25:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=arMV4G4c; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=MHdrSbZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230353AbjATOLN (ORCPT + 51 others); Fri, 20 Jan 2023 09:11:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbjATOLE (ORCPT ); Fri, 20 Jan 2023 09:11:04 -0500 Received: from fx304.security-mail.net (smtpout30.security-mail.net [85.31.212.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B55EC79DB for ; Fri, 20 Jan 2023 06:10:31 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by fx304.security-mail.net (Postfix) with ESMTP id F2C1A9D0D4 for ; Fri, 20 Jan 2023 15:10:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1674223830; bh=RQWzU2KqdgJRpX94P0CtkFxRAHBwvD2KcEBPPyxcloM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=arMV4G4ctiG1LAAGKAck0PQB27Sl+HEWIKsxEQVsl/RYInWXOUnjU0Cya1Q3VtcKi 372Kkq55RL5C6JeaLkDM3c/7ZUda3Pn//2hAXWehNH5Rp4CiOG3lAGAtO3MRF6ztZS toV61UY0X0qR/Ay2x/jzB4sdnMAjwPXpMi9nUkOU= Received: from fx304 (localhost [127.0.0.1]) by fx304.security-mail.net (Postfix) with ESMTP id A36439D0CF; Fri, 20 Jan 2023 15:10:29 +0100 (CET) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx304.security-mail.net (Postfix) with ESMTPS id 9A3EE9D037; Fri, 20 Jan 2023 15:10:28 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id 6705027E0430; Fri, 20 Jan 2023 15:10:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 4F41727E043E; Fri, 20 Jan 2023 15:10:28 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id zKBDQHbhDaEG; Fri, 20 Jan 2023 15:10:28 +0100 (CET) Received: from junon.lin.mbt.kalray.eu (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id CDB2C27E0442; Fri, 20 Jan 2023 15:10:27 +0100 (CET) X-Virus-Scanned: E-securemail Secumail-id: <6f30.63caa0d4.98f72.0> DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 4F41727E043E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1674223828; bh=W0RwmQvGfQWqSUcWAC1Dc3r+zpspRVwPqWqReyFBvZA=; h=From:To:Date:Message-Id:MIME-Version; b=MHdrSbZ7EFMkFaZDXJohPgZy04uIddLyTkjn3Ka32JU97Sdek2KRS4kbc9iHt+Kfu aYZGNKJMocHa+4+1QyxX/yAipaYsbh5POzPgDYjEwI/cvCS95HL2G9aGBuX0XF0+jp Iz8iNW4Xsccsvzp27uZAJvfTCRIiUBWekPYCkaKg= From: Yann Sionneau To: Arnd Bergmann , Jonathan Corbet , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Will Deacon , Peter Zijlstra , Boqun Feng , Mark Rutland , Eric Biederman , Kees Cook , Oleg Nesterov , Ingo Molnar , Waiman Long , "Aneesh Kumar K.V" , Andrew Morton , Nick Piggin , Paul Moore , Eric Paris , Christian Brauner , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jules Maselbas , Yann Sionneau , Guillaume Thouvenin , Clement Leger , Vincent Chardon , Marc =?utf-8?b?UG91bGhpw6hz?= , Julian Vetter , Samuel Jones , Ashley Lesdalons , Thomas Costis , Marius Gligor , Jonathan Borne , Julien Villette , Luc Michel , Louis Morhet , Julien Hascoet , Jean-Christophe Pince , Guillaume Missonnier , Alex Michon , Huacai Chen , WANG Xuerui , Shaokun Zhang , John Garry , Guangbin Huang , Bharat Bhushan , Bibo Mao , Atish Patra , "Jason A. Donenfeld" , Qi Liu , Jiaxun Yang , Catalin Marinas , Mark Brown , Janosch Frank , Alexey Dobriyan Cc: Benjamin Mugnier , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-audit@redhat.com, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Subject: [RFC PATCH v2 08/31] kvx: Add ELF-related definitions Date: Fri, 20 Jan 2023 15:09:39 +0100 Message-ID: <20230120141002.2442-9-ysionneau@kalray.eu> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230120141002.2442-1-ysionneau@kalray.eu> References: <20230120141002.2442-1-ysionneau@kalray.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ELF-related definitions for kvx, including: EM_KVX, AUDIT_ARCH_KVX and NT_KVX_TCA. Co-developed-by: Clement Leger Signed-off-by: Clement Leger Signed-off-by: Yann Sionneau --- Notes: V1 -> V2: no changes include/uapi/linux/audit.h | 1 + include/uapi/linux/elf-em.h | 1 + include/uapi/linux/elf.h | 1 + 3 files changed, 3 insertions(+) diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index d676ed2b246e..4db7aa3f84c7 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -402,6 +402,7 @@ enum { #define AUDIT_ARCH_HEXAGON (EM_HEXAGON) #define AUDIT_ARCH_I386 (EM_386|__AUDIT_ARCH_LE) #define AUDIT_ARCH_IA64 (EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) +#define AUDIT_ARCH_KVX (EM_KVX|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) #define AUDIT_ARCH_M32R (EM_M32R) #define AUDIT_ARCH_M68K (EM_68K) #define AUDIT_ARCH_MICROBLAZE (EM_MICROBLAZE) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index ef38c2bc5ab7..9cc348be7f86 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -51,6 +51,7 @@ #define EM_RISCV 243 /* RISC-V */ #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ #define EM_CSKY 252 /* C-SKY */ +#define EM_KVX 256 /* Kalray VLIW Architecture */ #define EM_LOONGARCH 258 /* LoongArch */ #define EM_FRV 0x5441 /* Fujitsu FR-V */ diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index c7b056af9ef0..49094f3be06c 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -444,6 +444,7 @@ typedef struct elf64_shdr { #define NT_LOONGARCH_LSX 0xa02 /* LoongArch Loongson SIMD Extension registers */ #define NT_LOONGARCH_LASX 0xa03 /* LoongArch Loongson Advanced SIMD Extension registers */ #define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary Translation registers */ +#define NT_KVX_TCA 0x900 /* kvx TCA registers */ /* Note types with note name "GNU" */ #define NT_GNU_PROPERTY_TYPE_0 5 -- 2.37.2