Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2122704imm; Thu, 20 Sep 2018 08:07:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBhK2JDTFMnBZQrcDwrXzimjzbdB4q+B26rPb6c+Nvs4ho2QT/ptPxpgKWAJp5XQ7Q+Ad9 X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr40443945plc.118.1537456038384; Thu, 20 Sep 2018 08:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537456038; cv=none; d=google.com; s=arc-20160816; b=spwKOldeKCMzVeZKt+JualQIIE+kURr/AQ746bWyOrXfpL36GkrIk3dIlCt/yTsJK9 V6zqMyD4exNel9XenUxtg7UuRlWWDp2hsLlNOCD6oB9SMFvOlHoxx9bB+/ra1SwJS17u g3mlqH28HDdJvI3rP+tUq+TagmG00dVd4jrSSilqdZihV8WytPKsJwMSI0AgAdTpHDsC mGAB4f1QtL8HoJtyU9RuIfevLw4q4jK1Tme1sEiRM8v0ScIZ72y/15uMteAgzYcs6Dx/ eYd5UKoq0tutCBr8TeJxIe4YNkPpIfnouvlLeR2gPtruDqpKNUbz9nKGbOHrwGOyf5Gd aygw== 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=K2RQxGZKyXtMtWyGJE3WIpbleM3eQi9cj2TAc+0eZi8=; b=x3h3cguXrLL/9mPjPK/3O72prXLKqeK9e9yX90dyPbdsWwNWpZOfhzh4UplXZd5X1J xWgvm9zguE3i6JaLlXUyuyErLWCaSHOEdDXFdKr+zxgCckj28xPd4Fm3oGAcPHuOekIM 84MsiOHUD7Ht9WIYubhrl4ZoXxIo7GnEoOSj3kKanxXj7OPfhboynRi+byqOhH6p8zXE 3vljktbqHRkh3RJlG24myeaYbM9gaTA93Jw9E8tHSpEybYcYiAKw+V7T3KY7Ma5akShT /Mo9Y9TdoM1mdJxxZWU+1/I3658Of5cKeH1UZo8rbgZwi3ncNLKCQcD5BDzySWS0KCxi 8fkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J0toVegQ; 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 a65-v6si23346609pge.694.2018.09.20.08.06.50; Thu, 20 Sep 2018 08:07:18 -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=J0toVegQ; 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 S2387589AbeITUuh (ORCPT + 99 others); Thu, 20 Sep 2018 16:50:37 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36762 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730758AbeITUuh (ORCPT ); Thu, 20 Sep 2018 16:50:37 -0400 Received: by mail-pl1-f195.google.com with SMTP id p5-v6so4492445plk.3 for ; Thu, 20 Sep 2018 08:06:43 -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=K2RQxGZKyXtMtWyGJE3WIpbleM3eQi9cj2TAc+0eZi8=; b=J0toVegQoKcUL07PNhjWlVaP0QbceAFqcwjilF2gQgzelQ2o7fGzwxjxiD3tOLJD0l u5CwVMgQZlmD3Ws1JeGmfS+Cu4CRA1cs9rCXNDUjFcqa0P5XFlqCUpfzt3zV5h0xLlmI GdcE15xTiiI+F57FhfRbG20uQvzkOJB606png= 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=K2RQxGZKyXtMtWyGJE3WIpbleM3eQi9cj2TAc+0eZi8=; b=m6Tsut3fVM7Vfg68s6+HsK6DTb+oLrBaS1dipg13L3q6Ac2iEfhfPZSjULtQ2zlpW+ GTsrpCyd2q1214LJdBPj4wjqGFdb2PYsiOPg3//5JBC0BUUuUHHermhFXjFTVB105yx/ pmW8sSFFcMRNKMWAhB57y/oqqPXn21p2XbIFbuAicnR7tLE/mDlzz8HMz3xUvbN3vCKF 8gIFD7/mFtVORA0BR89c/tJDCoJx4qmjrTTIT1dSnG8/jvB/j9ZOu8aAEkkFZOolzCuA 0uRjdiiTFS0hpYqGuuZR/YWkidRy/UVIRthMHHdKFRdS4ym3Tta/ErZrIledAu6SrCEd 6/0g== X-Gm-Message-State: APzg51AK113eUR5u4NPIWHo3Hoa+oBP2LuV5eyxXEoL0tjN5beyMLwU0 qILn6xQy6PCyqqqyKOtfAxllbA== X-Received: by 2002:a17:902:f213:: with SMTP id gn19mr39976413plb.266.1537456002845; Thu, 20 Sep 2018 08:06:42 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([106.51.107.142]) by smtp.gmail.com with ESMTPSA id k64-v6sm36222991pfg.141.2018.09.20.08.06.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Sep 2018 08:06:42 -0700 (PDT) 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 v2 0/5] System call table generation support Date: Thu, 20 Sep 2018 20:36:08 +0530 Message-Id: <1537455973-12468-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: 1. We can easily add/modify/delete system call by changing entry in syscall.tbl file. No need to manually edit many files. 2. It is easy to unify the system call implementation across all the architectures. The system call tables are in different format in all architecture and it will be difficult to manually add or modify the system calls in the respective files manually. To make it easy by keeping a script and which'll generate the header file and syscall table file so this change will unify them across all architectures. 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, microblaze, sparc, mips, parisc, powerpc, sh, sparc, and xtensa. But I started sending the patch for one architecuture for review. Below mentioned git repository contains more details. Git repo:- https://github.com/frzkhn/system_call_table_generator/ Added an extra patch to keep __IGNORE* entries in asm/unistd.h. Finally, this is the ground work for solving the Y2038 issue. We need to add/change two dozen of system calls to solve Y2038 issue. So this patch series will help to easily modify from existing system call to Y2038 compatible system calls. Firoz Khan (5): m68k: Rename system call table file name m68k: Replace NR_syscalls macro from asm/unistd.h m68k: Added system call table generation support m68k: uapi header and system call table file generation m68k: added __IGNORE* entries in asm/unistd.h arch/m68k/Makefile | 3 + arch/m68k/include/asm/Kbuild | 1 + arch/m68k/include/asm/unistd.h | 10 +- arch/m68k/include/uapi/asm/Kbuild | 1 + arch/m68k/include/uapi/asm/unistd.h | 385 +----------------------------- arch/m68k/kernel/Makefile | 2 +- arch/m68k/kernel/syscall_table.S | 14 ++ arch/m68k/kernel/syscalls/Makefile | 37 +++ arch/m68k/kernel/syscalls/syscall.tbl | 369 +++++++++++++++++++++++++++++ arch/m68k/kernel/syscalls/syscallhdr.sh | 39 ++++ arch/m68k/kernel/syscalls/syscalltbl.sh | 28 +++ arch/m68k/kernel/syscalltable.S | 403 -------------------------------- 12 files changed, 502 insertions(+), 790 deletions(-) create mode 100644 arch/m68k/kernel/syscall_table.S 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 delete mode 100644 arch/m68k/kernel/syscalltable.S -- 1.9.1