Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3850926imm; Mon, 1 Oct 2018 05:39:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV60jay1aeT+fgf8yi2IJWOQRPkMd0jaNW2+MpJErwpNBMBit2k0g4PwcZUdyK3eVwTzgW2zg X-Received: by 2002:a63:6507:: with SMTP id z7-v6mr9981026pgb.200.1538397545814; Mon, 01 Oct 2018 05:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538397545; cv=none; d=google.com; s=arc-20160816; b=vi3YDIVX3yKjTSgFuUlQTiNoy4hGUJucsyvupfXJj/X0HESIolSgSnA4ODXyiCSQ9H g2ZJy+XnPloNtHg5DUu080995+de6ZXPrzRMOqh9XsvqcSDA60JOOSAQel4pbPU2pXVq JwKlW7oVetad2nvQ32MixyTU/chgAOiiPM1qgwIJGihm7qcqkinIjxtfytoy4gVBAoON nxhpcDMP5pMAQZpo3LPQv4LY/OHurnQcN7D5DRN3dqpNBw4tijqMXTcxG/OQlkJCC32g SsSA5n1xDQ+N3gZzEtaroWtqao8llYU4GmTfcNVvzJOqhAAdRgoNKPTrQwrqvHEwOBlM OEKA== 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=fVI0u1iT198yHhx4UK3N0bA9+ivAz3toURxswIBVd3I=; b=cVzu5qbmrPmO04PhQGhYzVB1BK5cQN/fV4TvjVPkv20YufUfaP8JPz3RtrHm6vnqJO 9sgmMKTO5ORUFBKEhdCakczVb4Y3QxozydAIFB2LYodils23nM3iQI6OBZCtW/uSHRax p3QapRiQJ+WOgE2YPjy/3OYNj6ZP0PE5x36ymBDCDOiyjQ0YHcpO/ZRdcuhK0JX8Sr1c pXifV7LTMOCQ2mIA+zn4+sdTbW9HM/WmJX1G6yqHoPUwvK7iZTe1/JLO1PdGWZDdFxOP vD2B5pV6cI/kiEKX2yU2V72UHV3I5YXxNf2W+EKajeZ/dxuEW41CzFuG+P0Ai7NgcUWI 9hRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GfGj6/DS"; 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 m3-v6si10327734plb.478.2018.10.01.05.38.50; Mon, 01 Oct 2018 05:39:05 -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="GfGj6/DS"; 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 S1729286AbeJATQQ (ORCPT + 99 others); Mon, 1 Oct 2018 15:16:16 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42546 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729152AbeJATQQ (ORCPT ); Mon, 1 Oct 2018 15:16:16 -0400 Received: by mail-pf1-f196.google.com with SMTP id l9-v6so9110181pff.9 for ; Mon, 01 Oct 2018 05:38:38 -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=fVI0u1iT198yHhx4UK3N0bA9+ivAz3toURxswIBVd3I=; b=GfGj6/DSneL9s8vj1tn5+F7PWhojC1HCWJnPibSpQ3c3/3J5v+hvXMs9MD0wQbKYm/ OJ8tcY0zZR2ElOy/KRpoiIGevanOg8NLhH97vRKiTPFqigDMpbxA/akjpPsFYT6VaY8E DvCAB/XuhplD7v326YlaI9dzTR9D76MktkdlI= 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=fVI0u1iT198yHhx4UK3N0bA9+ivAz3toURxswIBVd3I=; b=s1iF6r719gJNldSJEKp/uS3mtxvi1KqVnxnEf02gq3mYbcEXgHZk8qkxNiNPQIk2Ck vQDYobD3hNfIJZQAgBD3EA1V+cbVD6DA4Fzh66JBnzkPIz8YS9N4CLyT9BNy9q/Z/3eH 7ytiyw1j92nqDMYR9f5ahCkeCsIagNpB9IqD+a1LmC/U07GB+MdPmMnQbCBM9rfCaGKW 0/NwyPakjc8imnxZHTxz4xOR4w8L2WxEmL0Y/EVFTPeHUv8aGLTROp7By6IedPsz5ApC 3igdiQ/6+O5yLALX0FqLwo/DldrznFKH32V0dvJMa13Uu1wT8qO0MIp3+Ypad9zL5JDq ekrw== X-Gm-Message-State: ABuFfohuscOBSAq/2FxJXZ10NaaWBhRm/dT287gWfmlYMR/ogUCXcoyF qLkktUIkxlIOOCKBBN4ltlDVIw== X-Received: by 2002:a17:902:8bc3:: with SMTP id r3-v6mr11503585plo.218.1538397518257; Mon, 01 Oct 2018 05:38:38 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([49.207.59.231]) by smtp.gmail.com with ESMTPSA id o12-v6sm21329345pfh.20.2018.10.01.05.38.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Oct 2018 05:38:37 -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 v3 0/5] System call table generation support Date: Mon, 1 Oct 2018 18:07:52 +0530 Message-Id: <1538397477-4003-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, ia64, 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/ 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: add system call table generation support m68k: uapi header and system call table file generation m68k: add __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 | 38 +++ arch/m68k/kernel/syscalls/syscall.tbl | 369 +++++++++++++++++++++++++++++ arch/m68k/kernel/syscalls/syscallhdr.sh | 35 +++ arch/m68k/kernel/syscalls/syscalltbl.sh | 34 +++ arch/m68k/kernel/syscalltable.S | 403 -------------------------------- 12 files changed, 505 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