From patchwork Tue Nov 13 09:31:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 150938 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4177479ljp; Tue, 13 Nov 2018 01:32:24 -0800 (PST) X-Google-Smtp-Source: AJdET5dV+GastAxGUE3LL0cInggnwOjgCzUr4M10w1v2ID8f6K3Y104iJnnUxYA1+g/M/AxXrOM1 X-Received: by 2002:a17:902:b28b:: with SMTP id u11mr4339429plr.57.1542101544346; Tue, 13 Nov 2018 01:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542101544; cv=none; d=google.com; s=arc-20160816; b=vQUlWJhSDrkAZ8FILL7yQ28wr7Vj93e5TzUtKUuoAB9zglVZuKwAUbJUc8B9c3Jaf9 scKoi3NxTTTGgieDFGohzED1GccMBs0O4HOg8kV1kiIv51rIyxMb8IqVzearru/fn0Yk N806r9Dh4zmh2m1psvQpj1PoWTWcTV9zNKVNHHCJYTK0zYpdSpJkPDzqB71tMaQANIBL c52M6v9iooOqmE5zovaATmuLx7R1YcHbkawvTunbPhTjWx82lgx/nab0Z2fnP/K4lL72 fJUq3H/eXcoWxSTqiCT179AjIYiQIjFY0AJsrPc1pKsUlABKl830m/RsPVCueQXmVaB6 gqmg== 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=fSR/dgGGAx64INZQhuJJoz0fYjyw+R3P/dJMarV8PZs=; b=O9atdDT8/vLBOrGA+XCfSk6faS/WdGKb7Xvm+o0POwU4ETF0FC6EECHEhuWYtEd1Wj o/VecafuuPdSP5THcNMpykZkcMQWKrN9n98d/pW1HJ+IoRL6Nlo3RvWhjrjAYJDlVYkl USZCVDy18JFfqii7EWHTvEPilZ9/5m6iQxPivvT71sfXulvFdT9Nr8F7+TGCwlH/NOHd 4YjktxwhZ1sEyeNokV6MxYQKpvluEn1TWLulC3LnQAIhPJyFWtdfo5NFmq7K8YKuiJMD 9lJkfGqMZFTy/N2najLvuvX2SGiZMxV3WovcV7DQ1u8y65ohOO827zyx5ui72rV/VaE/ 1BbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="H/MV6fiB"; 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 x3-v6si22122167pfb.122.2018.11.13.01.32.24; Tue, 13 Nov 2018 01:32:24 -0800 (PST) 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="H/MV6fiB"; 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 S1731668AbeKMT3g (ORCPT + 32 others); Tue, 13 Nov 2018 14:29:36 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37641 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731271AbeKMT3f (ORCPT ); Tue, 13 Nov 2018 14:29:35 -0500 Received: by mail-pl1-f196.google.com with SMTP id p6-v6so5725435pll.4 for ; Tue, 13 Nov 2018 01:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=fSR/dgGGAx64INZQhuJJoz0fYjyw+R3P/dJMarV8PZs=; b=H/MV6fiBX7ArMsF9B5XAAx2+AuQC7fTMA6ePnj9hWQkaXgUk3K89AgPfF67x+IEdpL 0F8s3RKDvJScUuCgv4SCn2Rj6c3yn6wn9U/hCjFBxNrkn7XVjusYVypEtedzkoHl5bez gJ6ZFyDF5IPMDhpffF5lAtfLRkMkZQhUk36/Q= 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=fSR/dgGGAx64INZQhuJJoz0fYjyw+R3P/dJMarV8PZs=; b=YWLWQsBGfF23NbQRjEDV5Dwpk0/78e49VJh7UTEY0HivrVqp1XOA1/U91gUDeQzy7B z1dzwJxDSwSgnBNhMK2ODsNn+zlnn11EU4S9Z8sk4ekPpY5SFXnkkhg3Bv5ATjADIx6h fx11WbX6976DcqCdyAqJN8/SEH5jDP2Y9eTtzeuEBaFo0ZUB9uSRydPxZmCADGvTju0y LjDlgs4u5FcOyzHwsnIJBodE2Glrb3oVpqaNT+ccNF9pAnnDfbYtwyR0s1J0xAvYgJ31 9/av+i1a0xgi/mgzAI9r4ZnCbniM2n50+tyXu0GYkNycCkJPkDJyNq33KjolpvuWNsXF r3JA== X-Gm-Message-State: AGRZ1gLEmha9goeamnPwCo7ldhIuaAsks1EBRCdDWQuRO/sItVCX2EDq ydVHJw1WnYEjU+E7IFckS7m5wA== X-Received: by 2002:a17:902:6a4:: with SMTP id 33-v6mr4417208plh.268.1542101541723; Tue, 13 Nov 2018 01:32:21 -0800 (PST) Received: from qualcomm-HP-ZBook-14-G2.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id u6sm19902462pgr.79.2018.11.13.01.32.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 01:32:20 -0800 (PST) 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 v3 0/5] alpha: system call table generation support Date: Tue, 13 Nov 2018 15:01:48 +0530 Message-Id: <1542101513-22010-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 v2: - changed from generic-y to generated-y in Kbuild. - made changes in syscall.tbl for removing entry - alpha_ni_syscall. changes since v1: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall.tbl. - enclosed __NR_sycalls macro with __KERNEL__. - added missing new line. 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 | 32 ++ arch/alpha/kernel/systbls.S | 542 +------------------------------ 11 files changed, 596 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