Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp860029imd; Thu, 1 Nov 2018 06:45:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5eNv86u1GtphtJKiSa3e937NGRs70a4qqCZsQFw8MXLl7Cnt2FGlNPaUvm1ibFK6dP9SThx X-Received: by 2002:a17:902:2468:: with SMTP id m37-v6mr7841777plg.154.1541079909707; Thu, 01 Nov 2018 06:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541079909; cv=none; d=google.com; s=arc-20160816; b=XtATlUHreSUZJC3GT0ktWSmpe6+bqtL7a+mh1myEi9Kiylu0LrwbyVgLc61E6c0mDl B9wWBbkwpRUsHmWl1jKMmK5kO1rp33YuUmj0h2rJ6z5Cp1q+CSzih6Kal06vn/YTOpNq m/n05+U2u2weaS8DaP2SmrJg2Nv2vqDWuN73h3VEguFlvlBpC9fUKB+uB71jpxBn+zu5 cdpJem6gNCLjx73JRpa/g3Ku9gA9aV3bXOJSuraSENcGya+WRmAlAHDXo+XYii5Sx2j4 80s7f4AnqGY93HnY2r8scVFlwoRphte20xD/dNmrFINK0tRf3TqksaMuHcemNUh3ZHdj p/ug== 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=Aq2ismV06kUtMdw76a7jFmIWugJfYMfogF8ILYQJUog=; b=Xvacr2eA1Rkn9FD8yQKXrI+5DdKDSIgJckx3N9k27Crwqekl81Da3/YaVbFGB4xcUt Im0giiWuZZM7vd6J8+okCTTftFepQ1mPe+YNuN3n2Jk3fbGYpnObdYaB4cK9t0fDkaNC 9hUTRxWwV33Hqv6jkhJm4cPWdqVgDtUPVHEBnjryqNXqwC8soi0/0LpzpF78PFbRFCRe FdEbri49/zxtAOoxHv0yJbWa9di8a2jeJ61QZt/pBS85B4wnNXDhhXk1PHnQzT4Y7Qo+ Iih+n+R2n3oK0HSt85BByoehUs5IY3256/cggj3W4CS7bI7A/Dm9eSv5jstUh8ypqWMz C2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jJVLW4am; 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 z11-v6si30630154pgf.66.2018.11.01.06.44.52; Thu, 01 Nov 2018 06:45:09 -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=jJVLW4am; 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 S1728699AbeKAWrN (ORCPT + 99 others); Thu, 1 Nov 2018 18:47:13 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46727 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728515AbeKAWrM (ORCPT ); Thu, 1 Nov 2018 18:47:12 -0400 Received: by mail-pl1-f196.google.com with SMTP id c13-v6so1124382plz.13 for ; Thu, 01 Nov 2018 06:44:11 -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=Aq2ismV06kUtMdw76a7jFmIWugJfYMfogF8ILYQJUog=; b=jJVLW4amcVwJPGMl/daHOL2njI+fc8edDKbJsYSBA6Vkrzp9Y+77w71RTzDSTlCxp0 QABG4L1A/5FRtQRYvEk9GdUfvLP2OygTuYSbRovKbPFpwILs6/5ys/i4hF2pqfNmaRgY WXbJ/3Grb5YkCEIfpV6s4T5ipdSVQ5q0thlSM= 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=Aq2ismV06kUtMdw76a7jFmIWugJfYMfogF8ILYQJUog=; b=syVluu+K4OnAQ8d02vRMRlWazidnw5CycJKaRSFSNhpzpDckuFp5Ait3ktc+LMtfOh jXxn33XBctfsAAU+2HOdwn4Je0jKu/taZ5GiazQ5QzyrTc3kxIYiJoXbkymefl5inWpL tGnLTMiRfhxoOMyWz4gtH8PelJwxLXTpTFu95+HdRKf8JFbObUnaNXImNnoYIHHMqdj+ lO0m2M3FX0ZvjGs+yj+ZexoDG67dAlrb43IkJzeS7tZtgSmMxXoaqZfwlrNWTc4ap3+v ZIbaIR32jUzLoq80TqFI1pvC4rcZB5SGi2BfcfS8OVfUeXoof3RSjIlrDMSpBMPdzrVs 9FLQ== X-Gm-Message-State: AGRZ1gKhql0IcuBufER354cT2aS7xPyuwFh0BvpE3YJjYml7mvaSQKIK lWQHu3umN5Ks7wSeUVMklwY/SA== X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr7589560pld.59.1541079851055; Thu, 01 Nov 2018 06:44:11 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.104.211]) by smtp.gmail.com with ESMTPSA id r23-v6sm36359299pgm.48.2018.11.01.06.44.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Nov 2018 06:44:10 -0700 (PDT) From: Firoz Khan To: linux-alpha@vger.kernel.org, Richard Henderson , Ivan Kokshaysky , Matt Turner , 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 v2 0/5] alpha: system call table generation support Date: Thu, 1 Nov 2018 19:13:32 +0530 Message-Id: <1541079817-3431-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. 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 ia64, m68k, microblaze, mips, parisc, powerpc, sh sparc 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 (5): alpha: move __IGNORE* entries to non uapi header alpha: remove CONFIG_OSF4_COMPAT flag from syscall table alpha: add __NR_syscalls along with NR_SYSCALLS alpha: add system call table generation support alpha: generate uapi header and syscall table header files arch/alpha/Makefile | 3 + arch/alpha/include/asm/Kbuild | 2 +- arch/alpha/include/asm/unistd.h | 23 +- arch/alpha/include/uapi/asm/Kbuild | 1 + arch/alpha/include/uapi/asm/unistd.h | 484 +-------------------------- arch/alpha/kernel/osf_sys.c | 9 +- arch/alpha/kernel/syscalls/Makefile | 38 +++ arch/alpha/kernel/syscalls/syscall.tbl | 453 ++++++++++++++++++++++++++ arch/alpha/kernel/syscalls/syscallhdr.sh | 36 ++ arch/alpha/kernel/syscalls/syscalltbl.sh | 36 ++ arch/alpha/kernel/systbls.S | 542 +------------------------------ 11 files changed, 600 insertions(+), 1027 deletions(-) create mode 100644 arch/alpha/kernel/syscalls/Makefile create mode 100644 arch/alpha/kernel/syscalls/syscall.tbl create mode 100644 arch/alpha/kernel/syscalls/syscallhdr.sh create mode 100644 arch/alpha/kernel/syscalls/syscalltbl.sh -- 1.9.1