From patchwork Fri Oct 26 05:11:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149564 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp322972ljp; Thu, 25 Oct 2018 22:11:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5dYItCZMzQlwILVDV83A03ybVLwsYXOZaIIoJr1ZuJhLlV9XlLnUxdW6mlxxcl3SVLLkQ5Z X-Received: by 2002:a17:902:4281:: with SMTP id h1-v6mr2121813pld.114.1540530705157; Thu, 25 Oct 2018 22:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540530705; cv=none; d=google.com; s=arc-20160816; b=kRHNHVSgiNF+Idg02wj6x4v+4eWSgeg0iZIkC5RAy1TLkOoKP0FVT/sKy4ikYNVQGO Lb08fF/7MjDylKf2MIrofkae/G/L4VWgCf8Tebc8kyovQBfxu76QnhN5cbQADFrk8ruu RNHunO4T9RJ1Mxc/WOxPERs3DTpoQEID4jSIJ3H4cSjfmvwuBJNmD0N18L1eaLGG5OTZ 0Kn3802VHADqpGH5EONf7QklKfpaUuBv91ETpL8OQCVjvBy7txZkIsVMkStoGxj/IdrW y4AxiLVHpScf1ntAbJZJhx532RqiurvgT2mqfLdRZrxPtlEkkCX3PpT8kqw6pGFmOHif Hodw== 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=k8JL1g3woiiKaimfddLgG722nPrW6K3PY1HWBJoweZc=; b=t/ApPcYxG+d3AeZ0wZ1WJbTyBoX1gOnfA/7AcC/WxAzMdLJRbmL9MV6ynWpvYZVuS6 X0YCSbDB6xmJWAFArA9Ax9JS6vZTriSwV8kygh6HICZQ+LZuSCgjRhoyhSvscpvYtflR ouIEljnmHCYwU04hIfPG8AQ8j32hdRJPTLm5lqc1T31Zkva6l0lNRn1RpOFQzMWOc4t4 Q5PuA404F5VNcn8PWP3ao+F1jELJ77G0zvdLUZpw2XcS6Q9BtRVTbkZvtJU623+PC2iA Se3Npy5eyPSFGkEcx5WY5E6hzzGy5MIsjak9RnROQD4JCOkI1xSKOEmHFszd91fle2Nm zabA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OqvyMeBz; 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 s132-v6si10983729pgs.492.2018.10.25.22.11.44; Thu, 25 Oct 2018 22:11:45 -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=OqvyMeBz; 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 S1726111AbeJZNrL (ORCPT + 32 others); Fri, 26 Oct 2018 09:47:11 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43696 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbeJZNrL (ORCPT ); Fri, 26 Oct 2018 09:47:11 -0400 Received: by mail-pl1-f194.google.com with SMTP id 30-v6so4914641plb.10 for ; Thu, 25 Oct 2018 22:11:41 -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=k8JL1g3woiiKaimfddLgG722nPrW6K3PY1HWBJoweZc=; b=OqvyMeBzzydNL+wteXueSeXUYHxOz6WcReT37ODpTnErT6uIAe63YL87YHzQUx3rIF L54mBqZV/SDhT8N4q3i5KkKdxBrHqFZ1mY2HiudZw+t0cPHZCd7EXrtSTnj0LM/eNgbb kXasClzBXNSAkCDa2kRyjy+rNubuBctV1ct7k= 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=k8JL1g3woiiKaimfddLgG722nPrW6K3PY1HWBJoweZc=; b=ARDa5peBFOZVi0PEwX0QZB0/q+2z/aCkWMMgOfSQ3okAn9/bgYfp2l0cqnj9Rq0bj8 xXDStRs2CV239oeiU/CYgGGJ+Tkwpr8vDNW9stXGNBrtf4oIpoaC+oYaxaVOsWkQ0559 xmqKHZEyoPZ1z48eef7QLxjg9p3vI7ZidscdZKLGz8axQPNo3WGiwvKugy7Ld50p3IHc s9N44p4XA1/vZSawm32e4F0cmMNZ5nNB8w2xXP3HDcstH1v3G5kg29iXlqRAmQQzTPkk kNmgbCARV3waEnl2S06rIP4Mxz0p7x6cK9T1KLfhJU+86DPltNGUkhJtFFFEiZmdHA6G lw3w== X-Gm-Message-State: AGRZ1gL5054+xbNjHDj4S/Qwe4N4hjrnauILFbHVipOatBeJT0fwmAib i07Gr/tfNZJMfa1thp5+kZdx4Q== X-Received: by 2002:a17:902:b106:: with SMTP id q6-v6mr2102386plr.238.1540530701491; Thu, 25 Oct 2018 22:11:41 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([49.207.61.165]) by smtp.gmail.com with ESMTPSA id u13-v6sm9608912pgp.18.2018.10.25.22.11.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Oct 2018 22:11:40 -0700 (PDT) From: Firoz Khan To: linux-ia64@vger.kernel.org, Tony Luck , Fenghua Yu , 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 v4 0/5] ia64: system call table generation support Date: Fri, 26 Oct 2018 10:41:09 +0530 Message-Id: <1540530674-3824-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. 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, m68k, microblaze, mips, parisc, 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): ia64: add __NR_old_getpagesize in uapi header file ia64: add __NR_syscalls along with NR_syscalls ia64: add an offset for system call number ia64: add system call table generation support ia64: generate uapi header and system call table files arch/ia64/Makefile | 3 + arch/ia64/include/asm/Kbuild | 1 + arch/ia64/include/asm/unistd.h | 4 +- arch/ia64/include/uapi/asm/Kbuild | 1 + arch/ia64/include/uapi/asm/unistd.h | 332 +------------------------------ arch/ia64/kernel/entry.S | 331 +------------------------------ arch/ia64/kernel/syscalls/Makefile | 40 ++++ arch/ia64/kernel/syscalls/syscall.tbl | 337 ++++++++++++++++++++++++++++++++ arch/ia64/kernel/syscalls/syscallhdr.sh | 36 ++++ arch/ia64/kernel/syscalls/syscalltbl.sh | 32 +++ 10 files changed, 457 insertions(+), 660 deletions(-) create mode 100644 arch/ia64/kernel/syscalls/Makefile create mode 100644 arch/ia64/kernel/syscalls/syscall.tbl create mode 100644 arch/ia64/kernel/syscalls/syscallhdr.sh create mode 100644 arch/ia64/kernel/syscalls/syscalltbl.sh -- 1.9.1