From patchwork Thu Nov 1 13:53:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149961 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp820434ljp; Thu, 1 Nov 2018 06:53:43 -0700 (PDT) X-Google-Smtp-Source: AJdET5egN2jFTUXXKh4APNi3aJC1AKaGPiT5TrGxnOgri3txlvoYSX5s+qWTOjqJC+HffrM8IvKu X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr7748656pfj.152.1541080423127; Thu, 01 Nov 2018 06:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541080423; cv=none; d=google.com; s=arc-20160816; b=bfR/iy64H7sFvxdr2S2VMqckaOYby4a1oMVO0Imxydq0BGTCMAA93fWphdocOEGF07 s9tAZG72eulsJffQAXnXLSJwdk1K7chVFBpvz5N/3u3s9UHB2jzW+BPPlthBJ2H1CZie lBp71S4mTlkWnplIt4LroEMruWoDxu9g0lLuZhY0Zvx8aCfDiiaEIfCsp+HW2tueiNot Z2/Q4QTHcHWcrnUuaD+7qRcIULyrrvJSF7C2f5fST0DLEqA/ZnL7RLc77Shj8PVOINtJ VYLAMPt1k3HQORLE+JLIaMO+DWKS5uCQ2bVWmJ1kNkIrvjVJrQObFr2ZcNvPqub8fFMH zDkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kTeC/f707l2ldAme0+D1nBXrNU98i8iFLzaptPO7VgI=; b=LdDk+Ienb8/rS3eymVgNBKV+nx0v2CWaNYqVaMXAKeNPZfofqjD8OGgVJJ+/qDmsQ1 J/YxutBoeLqa43LPjcwnspVcgiHHL283TXvnKRoW+nXqb4ikabpd+4zCav2pbitL/mOy HfhphRLxKWP1YkeESyZ2tx/ODXe4HGc2RA33j9fEsw8gwYusaABhfN0bfF6OQ8Jnut02 ztZBekW8JRN+KCUpdfJ+oO12Mpl7eOy1QZcFfiict/tVIew8a4RGsYMUir08Lf2ja7Xk misLvF7pcj/HhTNZ8pJtjdH9FRvKVvEKoYMu4mikal1wqpnLWOw9K7wKS0Wzn0W89N8G Z7uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UOiHO0AA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z188-v6si18717771pgb.75.2018.11.01.06.53.42; Thu, 01 Nov 2018 06:53:43 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=UOiHO0AA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728738AbeKAW4o (ORCPT + 32 others); Thu, 1 Nov 2018 18:56:44 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43997 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728585AbeKAW4o (ORCPT ); Thu, 1 Nov 2018 18:56:44 -0400 Received: by mail-pg1-f194.google.com with SMTP id n10-v6so9054621pgv.10 for ; Thu, 01 Nov 2018 06:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kTeC/f707l2ldAme0+D1nBXrNU98i8iFLzaptPO7VgI=; b=UOiHO0AAwOcOTFG/XWLp3apqTquH57KYJh05RbFQYjrRJS+VLhE8GrZEXRfUBW1xJy Vm3P6zjRNq9E0iSZl0NCRnfO7WFc4q+pWuHOO9ovwsxO2lRNDT9lPa0157ABZsYCiQqX xYjylYk3U+NprLp2Kkx1YX94bglA2AIAbwZMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kTeC/f707l2ldAme0+D1nBXrNU98i8iFLzaptPO7VgI=; b=VSKsjx/x6pMvRZNQB0lPE391mly0Hwb4aJbhgNiaVPfy8vdtratyqB5y3YlmOONraw 2mVOYfkw6u7s4LBGK4bCUxKNtXA0Q2TfdoqvCMQbCwXTjwt16FxJHt7vHKbwJGglZP0f Tb8tmet2CIHLdcrAFyTtNL+4AucquXeenGSIuSoGfo/zN1fQtBVTTbWf63Qx4VLQDjug m4GVAE7VD7tcYsn7ntwWwrTixgkrkuPRlhlxE/iTtIMaSxiy+o2cfVuTXFLHGfWnJwuN vx4fsmHVyW7X9yMlKQVrNmK/fRdGD07YilvebLyBEofIveEVtAs9aGXnwgEVpisCEnyL 65bA== X-Gm-Message-State: AGRZ1gKW/sGMuENM2IjnzapyewHllV15ph5pSMsbwCMTq9mm2BtjU29m QrzAR1j/WO5zhA/bLkXVfYA7ZQ== X-Received: by 2002:aa7:814f:: with SMTP id d15-v6mr7915726pfn.78.1541080419587; Thu, 01 Nov 2018 06:53:39 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.104.211]) by smtp.gmail.com with ESMTPSA id 131-v6sm2224716pfa.120.2018.11.01.06.53.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Nov 2018 06:53:39 -0700 (PDT) From: Firoz Khan To: "David S . Miller" , sparclinux@vger.kernel.org, Greg Kroah-Hartman , Philippe Ombredanne , Thomas Gleixner , Kate Stewart Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, marcin.juszkiewicz@linaro.org, firoz.khan@linaro.org Subject: [PATCH v2 0/4] sparc: system call table generation support Date: Thu, 1 Nov 2018 19:23:07 +0530 Message-Id: <1541080391-3890-1-git-send-email-firoz.khan@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this patch series is, we can easily add/modify/delete system call table support by cha- nging entry in syscall.tbl file instead of manually changing many files. The other goal is to unify the system call table generation support implementation across all the architectures. The system call tables are in different format in all architecture. It will be difficult to manually add, modify or delete the system calls in the resp- ective files manually. To make it easy by keeping a script and which'll generate uapi header file and syscall table file. syscall.tbl contains the list of available system calls along with system call number and correspond- ing entry point. Add a new system call in this arch- itecture will be possible by adding new entry in the syscall.tbl file. Adding a new table entry consisting of: - System call number. - ABI. - System call name. - Entry point name. - Compat entry name, if required. ARM, s390 and x86 architecuture does exist the sim- ilar support. I leverage their implementation to come up with a generic solution. I have done the same support for work for alpha, ia64, m68k, microblaze, mips, parisc, powerpc, sh and xtensa. Below mentioned git repository contains more details about the workflow. https://github.com/frzkhn/system_call_table_generator/ Finally, this is the ground work to solve the Y2038 issue. We need to add two dozen of system calls to solve Y2038 issue. So this patch series will help to add new system calls easily by adding new entry in the syscall.tbl. Changes since v1: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall.tbl. Firoz Khan (4): sparc: move __IGNORE* entries to non uapi header sparc: add __NR_syscalls along with NR_syscalls sparc: add system call table generation support sparc: generate uapi header and system call table files arch/sparc/Makefile | 3 + arch/sparc/include/asm/Kbuild | 4 +- arch/sparc/include/asm/unistd.h | 18 ++ arch/sparc/include/uapi/asm/Kbuild | 2 + arch/sparc/include/uapi/asm/unistd.h | 425 +------------------------------ arch/sparc/kernel/syscalls/Makefile | 55 ++++ arch/sparc/kernel/syscalls/syscall.tbl | 408 +++++++++++++++++++++++++++++ arch/sparc/kernel/syscalls/syscallhdr.sh | 36 +++ arch/sparc/kernel/syscalls/syscalltbl.sh | 36 +++ arch/sparc/kernel/systbls_32.S | 81 +----- arch/sparc/kernel/systbls_64.S | 157 +----------- 11 files changed, 571 insertions(+), 654 deletions(-) create mode 100644 arch/sparc/kernel/syscalls/Makefile create mode 100644 arch/sparc/kernel/syscalls/syscall.tbl create mode 100644 arch/sparc/kernel/syscalls/syscallhdr.sh create mode 100644 arch/sparc/kernel/syscalls/syscalltbl.sh -- 1.9.1