From patchwork Tue Nov 13 06:00:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 150919 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4013080ljp; Mon, 12 Nov 2018 22:01:07 -0800 (PST) X-Google-Smtp-Source: AJdET5cKECJ1Y5zpD+Azwx+IHiSCoQqRaIWWwFXY7/teGwXZnc9qJ89HUEX1fqC2RN0IYPspc7JN X-Received: by 2002:a63:134f:: with SMTP id 15mr3515247pgt.19.1542088867791; Mon, 12 Nov 2018 22:01:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542088867; cv=none; d=google.com; s=arc-20160816; b=mofPKJaJKOn+L+Xql6Sibw+k+h0weN7dOWzF3gN8QYKOV/umbyX5JWBhce9ds5ECxr bFizpDFab8KxvcNl/baO5FbdZayn0bDSPDYKt38yr0gLwEwM2QZZ85+zAUfMiBu198Qo ym0hS5vZYnFAk7KapMMonsBeZEN407Wy6ZbjOVM91J5zoV26UwYMaahK6AF9f0WBYd4y hFkml2SDY8BgsuCXYVvwc7MI0hP2djhhMiwiJVJuYyTFlA3329Je3APqcoTqeSTlMig3 N1O2OkXKusklPpykTQqpqyjO+te0kmM0to4x2xy9ea/UQuNZAj+uMV4HVeicVON12hE4 yTUA== 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=ZNZDTnvn7tIw3FL3DX98sGo/8aKILPg2Pkrl1bj/yKw=; b=l2E7OX4QfkF7eAVrfRXt6GV2rAMIC8NfS5urzTePnLjcnZAhZMiWdFs2PxjUq1adho 3+TS6BbHLNFqGE+2eRh7EzucotOGQUbjL/rSgJXaKB8KwTigdT+9wgDEYtQ+fwI5p1Y+ tz+jPfVCFMI1R7tz86wB5r4VeBinskYmNVeu5KaYm3HBc83WKAq+fky6DUrbePXsrfZ3 cqJYey52w0MRUN1RwGxLNltZ/32FSVhgb719OFEzYGC964zOPyMLkBSk/fzBNOJWd3rI VFTCKEI5nb9vkHMw3Ocwb3mF73HV8uTQmgHUeXkdQd5lTcgqspEIlCr2wGPqSR1tICUz 3ddw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JYNN1w/o"; 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 3-v6si20679577pll.361.2018.11.12.22.01.07; Mon, 12 Nov 2018 22:01:07 -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="JYNN1w/o"; 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 S1732498AbeKMP5e (ORCPT + 32 others); Tue, 13 Nov 2018 10:57:34 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39287 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731956AbeKMP5e (ORCPT ); Tue, 13 Nov 2018 10:57:34 -0500 Received: by mail-pf1-f193.google.com with SMTP id c72so809328pfc.6 for ; Mon, 12 Nov 2018 22:01:04 -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=ZNZDTnvn7tIw3FL3DX98sGo/8aKILPg2Pkrl1bj/yKw=; b=JYNN1w/ovNR6C0MnBZupTFVuCMOTsPPqnx+ccMgR/Ydub30taGLV8whCBr2mI6R7Kq HADQY/yQ4O1rPPHNdIbaLLNYe14QcbKSTv0bLEltB6LlQkZZ6bT4x08pxi2G5L/+DNva nMb7QRxlREkz+HhZwDcZC7SbAynipWDuXAW5M= 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=ZNZDTnvn7tIw3FL3DX98sGo/8aKILPg2Pkrl1bj/yKw=; b=D8NAE0mTB3VQHrEoatf7C+6OpLW+0papCTaaXe7MvCZKgNXaUZujH/TI8uLEnT4o/Q o1FK/fU7sLGCgV/GmbUgXXvxAMn3VAcPo1TobXePH6ZgCutv7tvnsUSlG0Qh9kbz9Wj4 87jwCSDIWPNn0/YRbB+VY2DRClXynRZCkbSPepY2N4Sjr2rlnZN8Y8cFhDQ3dkJf38pa kpgB7/zRhB/LwJrLPH/OSh73HAPnV4hKdw+k3cvc+FH413EMtWpcfqfsXp/kwFtUpOHv rZtMAJ1XGRtg5HaYmcaH4GjYLccgdZUdieR/frBgyXwmPyDF3eqg4XDn2vDy8amj9X88 rWYg== X-Gm-Message-State: AGRZ1gKowPNzXBnTpPhz33LCWSFr7aq/TbIvD8XW/K7TWGobPlhMLfwU giuWUnZfSApotHjhS5jTRaaZbg== X-Received: by 2002:a63:89c2:: with SMTP id v185mr3278710pgd.97.1542088863987; Mon, 12 Nov 2018 22:01:03 -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 r6-v6sm19150204pfk.157.2018.11.12.22.00.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Nov 2018 22:01:03 -0800 (PST) From: Firoz Khan To: Geert Uytterhoeven , linux-m68k@lists.linux-m68k.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 v5 0/3] m68k: system call table generation support Date: Tue, 13 Nov 2018 11:30:26 +0530 Message-Id: <1542088829-19790-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 alpha, ia64, 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 v4: - changed from generic-y to generated-y in Kbuild. - remove the patch "0001-m68k-rename-system-call- table-file-name.patch". changes since v3: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall_*.tbl. changes since v2: - removed __IGNORE entries which was added in v2 to suppress the warning. - added missing new line. changes since v1: - enclosed __NR_sycalls macro with __KERNEL__. Firoz Khan (3): m68k: add __NR_syscalls along with NR_syscalls m68k: add system call table generation support m68k: generate uapi header and syscall table header files arch/m68k/Makefile | 3 + arch/m68k/include/asm/Kbuild | 1 + arch/m68k/include/asm/unistd.h | 3 +- arch/m68k/include/uapi/asm/Kbuild | 1 + arch/m68k/include/uapi/asm/unistd.h | 385 +------------------------------ arch/m68k/kernel/syscalls/Makefile | 38 ++++ arch/m68k/kernel/syscalls/syscall.tbl | 389 ++++++++++++++++++++++++++++++++ arch/m68k/kernel/syscalls/syscallhdr.sh | 36 +++ arch/m68k/kernel/syscalls/syscalltbl.sh | 32 +++ arch/m68k/kernel/syscalltable.S | 387 +------------------------------ 10 files changed, 507 insertions(+), 768 deletions(-) create mode 100644 arch/m68k/kernel/syscalls/Makefile create mode 100644 arch/m68k/kernel/syscalls/syscall.tbl create mode 100644 arch/m68k/kernel/syscalls/syscallhdr.sh create mode 100644 arch/m68k/kernel/syscalls/syscalltbl.sh -- 1.9.1