Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp347531ima; Thu, 25 Oct 2018 22:15:42 -0700 (PDT) X-Google-Smtp-Source: AJdET5cBzmWSOnSnb6xRDOcg6Ug6/CCThXdxvBt3SQVA6IUp5o9o/PwE0+YY9umiRe2iRV2EmVD7 X-Received: by 2002:a63:d945:: with SMTP id e5-v6mr2121032pgj.24.1540530942607; Thu, 25 Oct 2018 22:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540530942; cv=none; d=google.com; s=arc-20160816; b=DznAOm48/GAfCicAKc8iSE8FRVIuJn2MYsk7/j5CRNpXS9YgdDKInWeF+gWhP1Ou9F wWmiYW0Xk3zvwI3iy/bk3pugfeRh1e/fByjfpsh4P2GQToX3Iz3DB+ZWRJ+swtNkhYD2 C8kETlAdTR6MVf5lZYYdIDTgIcbDw81kPZLh5Ghoe3F63yyV5JCxflRCD09SwolejC9P mNkQtPpPxunFg74Ydg3nQ9+v8T7/ISQwlGZI3QaqOP1X1nXPq2q6iklGVMSgAbuGfcrG 1e7FwbcwyuVcMpfzxCf2cjXZh3kS74REoydZ0Dkr7nqr9d8JKIHwFtg/22FuXxIkkvMM ZCvQ== 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=PYh2oM+9zU8CExfKq8duTfH7XMAOfaOBGAvLLUe6XBA=; b=Bc2YVsUQLfgEjYdpsBYMqwMfHZ1p0nFGQgWru4Jg74ixQeRYI3pT3sr1GuOAYSJG1h KQbb9L2/PPht68Ppk9MX1PozE+XzC8ONP/YXh0EDHA8muAAB/tBxfLcFI8bBoGFvd5cP zeC/pZsI/nGk+f0wxZSk9Lb1uthheZck0gyZlrZgXoMV6lHpA1F8fwe3i04Vpw9glybb eLDUFPApypCZ8xU5biQI0H91I/Tb8HEzTcBOkcQjOzPJMOByG+bsZdUqGNzbkM6diEah I7wSvnhUPNSquuRwy4Fk3qKVb2Ke7z8buXHql4Qws1Alg2M1LBNO3TdAQFXTnHMxuFmP 4OXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P6FPLJpH; 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 n1-v6si1366299pgl.407.2018.10.25.22.15.27; Thu, 25 Oct 2018 22:15:42 -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=P6FPLJpH; 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 S1726020AbeJZNtN (ORCPT + 99 others); Fri, 26 Oct 2018 09:49:13 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44922 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbeJZNtM (ORCPT ); Fri, 26 Oct 2018 09:49:12 -0400 Received: by mail-pg1-f195.google.com with SMTP id w3-v6so5095694pgs.11 for ; Thu, 25 Oct 2018 22:13:42 -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=PYh2oM+9zU8CExfKq8duTfH7XMAOfaOBGAvLLUe6XBA=; b=P6FPLJpHhU0IUOJXIYO82IX6SPbs1jQmnU7BUKiu9PqUvo0n3L9PtugUhUWw/elQss dBfhh37F+L213tmhs/RDI2TUwbdCGE2LdCQ5bMHLt4m4URiL6DDNjNHCG+zZBOlIAmwO oYUkOWts4qDf4z3LKtQRsePIVy8yCX3dJerJQ= 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=PYh2oM+9zU8CExfKq8duTfH7XMAOfaOBGAvLLUe6XBA=; b=JQ+2lN4wonuhkyjUqaSfJnZ2gGETwUww6MfbwpCKxrfT6SxZqqNz2SiOTErNWTl/hF HhJCxoByPAgqawxdw1wVquiQl5cAZvBlmxOnWMJwDMnxBm4f9ogCLwS+O9vHOuigY0S4 lKFyh97TIzCcFvQ532ko1r1p51cx2OgTo87KShQL5BdtXUlBPwXjejzjU7rcxiWz9ojb nn/gzXCPzgO14HohJCmKtrVitCmOq3N8lv/4QvQfEtHvT2pE1rrDEnujZ+V3OUpBviLG c5T9yJZdSCZujVMx4J8bIBhyuXa4EuQ4Rf5cPr/v6dypmApUwSTPMdNQxNKV4FaeXMHd Q03w== X-Gm-Message-State: AGRZ1gJK/kTdVhKY62Pgse4/+hVAiISVJawNg8Tbx8DP8lV5iaTG25gu JxpBIe/vAxNAhNKKHPsp5q8sQg== X-Received: by 2002:a63:d208:: with SMTP id a8-v6mr1921853pgg.99.1540530821976; Thu, 25 Oct 2018 22:13:41 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([49.207.61.165]) by smtp.gmail.com with ESMTPSA id m16-v6sm3329302pff.173.2018.10.25.22.13.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Oct 2018 22:13:41 -0700 (PDT) From: Firoz Khan To: linux-parisc@vger.kernel.org, "James E . J . Bottomley" , Helge Deller , Thomas Gleixner , Greg Kroah-Hartman , Philippe Ombredanne , 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 v6 0/5] parisc: system call table generation support Date: Fri, 26 Oct 2018 10:43:06 +0530 Message-Id: <1540530791-3961-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 changing 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 respective 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 corresponding entry point. Add a new system call in this architecture 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 similar support. I leverage their implementation to come up with a generic solution. I have done the same support for work for alpha, ia64, m68k, micro- blaze, mips, powerpc, sh, sparc, and xtensa. Below mentioned git repository contains more details. Git repo:- 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. Firoz Khan (5): parisc: move __IGNORE* entries to non uapi header parisc: add __NR_syscalls along with __NR_Linux_syscalls parisc: add system call table generation support parisc: generate uapi header and system call table files parisc: syscalls: ignore nfsservctl for other architectures arch/parisc/Makefile | 4 + arch/parisc/include/asm/Kbuild | 3 + arch/parisc/include/asm/unistd.h | 8 + arch/parisc/include/uapi/asm/Kbuild | 2 + arch/parisc/include/uapi/asm/unistd.h | 382 +------------------------ arch/parisc/kernel/syscall.S | 11 +- arch/parisc/kernel/syscall_table.S | 459 ------------------------------ arch/parisc/kernel/syscalls/Makefile | 57 ++++ arch/parisc/kernel/syscalls/syscall.tbl | 369 ++++++++++++++++++++++++ arch/parisc/kernel/syscalls/syscallhdr.sh | 36 +++ arch/parisc/kernel/syscalls/syscalltbl.sh | 36 +++ scripts/checksyscalls.sh | 1 + 12 files changed, 532 insertions(+), 836 deletions(-) delete mode 100644 arch/parisc/kernel/syscall_table.S create mode 100644 arch/parisc/kernel/syscalls/Makefile create mode 100644 arch/parisc/kernel/syscalls/syscall.tbl create mode 100644 arch/parisc/kernel/syscalls/syscallhdr.sh create mode 100644 arch/parisc/kernel/syscalls/syscalltbl.sh -- 1.9.1