From patchwork Fri Oct 26 05:06:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 149555 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp319406ljp; Thu, 25 Oct 2018 22:06:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5ePkVyla89xOg8NNMNmn+7YjxIiVRkZE7AuYMzUpeNi7UsquXtQx1bbuZXqOHQuqDbQlvB4 X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr2131414plf.286.1540530413072; Thu, 25 Oct 2018 22:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540530413; cv=none; d=google.com; s=arc-20160816; b=KqPy0SgcydnZ5Jm0ByLcCEzIQw6kSrdL71FzQ3SGviA6irDpvjumfYu5pVPDNSVVij Y3r6/umul7/1yIGdsL/sVbBpFR5UFuKmaBLFaE7iTpFr/i8kLYkxQ/MrkNP0+snyI8km XF5LtLLsgZ8qhEidUW+nTzFLVb3v0oYtDhSkkDQQfmJExEs17i77/u+rG/UsUEW9okfj DMn0P291hgtNpjBZ4w8zKyABWhnRWAr1Y9qLjPwSqWNemd6O+pRwveBYr4lxVoHig4aJ 0z/85T/xQRsESgwclykPWASa5DueNh/p8djp1Xgnq06vb9/4eoYQkhYIDcOsBzmTKNkI bOrQ== 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=p9aMVaunxqt5375Wn53pZcPfpkGFKw4d+XwT+ySEfD0=; b=WVbAYIuVnTahs+aDnlFEucrtB62ocm6eaEke4w3LeZeMXHSMDxjALFw05EsSaoO+Ux fbZsBj+dWkssGaza6wh8Pa5xyu0/Kl6S5bYk6jJ/ArOcAs4h3SuMhDhkOImpDu4J6vgx 64/6hem2aDZw+hCetgKHm7zIbUfSp8bWh6IiQPChfAZL3DNj00IaLJ9lKgR/mhX6NJxt Qn5UA4KFzGsjixZFWBUzV1DqvO5SI1BV9QufTCd9fcOtePP5a6Wxb5ytnuhL434yIgfk /6ZM3t3LZ3pQQYXVk1JBlfi2xFXWEBYh5qTZ7Q4asAys9mJjQoBSs5tjHFQqx6FdKr6d bLeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CKj77Ysq; 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 cc15-v6si10308157plb.201.2018.10.25.22.06.52; Thu, 25 Oct 2018 22:06:53 -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=CKj77Ysq; 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 S1726075AbeJZNmQ (ORCPT + 32 others); Fri, 26 Oct 2018 09:42:16 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38937 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeJZNmQ (ORCPT ); Fri, 26 Oct 2018 09:42:16 -0400 Received: by mail-pl1-f195.google.com with SMTP id e67-v6so4910408plb.6 for ; Thu, 25 Oct 2018 22:06:48 -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=p9aMVaunxqt5375Wn53pZcPfpkGFKw4d+XwT+ySEfD0=; b=CKj77YsqiHzNFj3O5jGt/vNepkIoPe50fWpvqEPbJUF+7sDz5kbP183oXb+MRbbF2a 5f0KgaxmZFbVfbLiSKd7rgtojTQ63pK/F1WTA/9z9lp9frGwlmV3XXSoPr6Sg4AIi1x0 G7+5lZtqpBSi7LMruLpzHrPPpSYsutg6zO3kk= 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=p9aMVaunxqt5375Wn53pZcPfpkGFKw4d+XwT+ySEfD0=; b=L7yYIM//9OkJzmghWX7QNIu2jCrr80UhShU3GodFh2THaHmBGo6K6OePPKZOquN0mu qZWiHy9Q3r4vXCao256Yr7jp0rX9rHchuFLdjQVRGoYVpKuqAT/aCiqDKilThu/MpKIO 7oFdLPubj3ihTGZko5qGVY6YiI91vnPxDjS063+JsprnpIA3yCQ70oMAFv1lwhX3f4yb aeTjsHcHCTGHjN2btSEbhKAKSuaqZ4gmvBe//lG7/Pq+Z0/XUamIrwc2ER7b9q0bI9Ct BrWzfBeV+IkehaOp2e3Avki2k9fr1rKT9TjYTmX0f6SzVm0uX0QISSRU9CVG72TUuwy0 HUtw== X-Gm-Message-State: AGRZ1gIaHA94BMH6046GCnrwhxmU+S9oGhOtpaSWrQcVmV6fXxsEinFs ZcB+83ZcwDzfmjDkdaSRrh7c/w== X-Received: by 2002:a17:902:7142:: with SMTP id u2-v6mr2101752plm.154.1540530407615; Thu, 25 Oct 2018 22:06:47 -0700 (PDT) Received: from qualcomm-HP-ZBook-14-G2.domain.name ([49.207.61.165]) by smtp.gmail.com with ESMTPSA id m18-v6sm12800626pfk.149.2018.10.25.22.06.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Oct 2018 22:06:47 -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 v4 0/4] m68k: system call table generation support Date: Fri, 26 Oct 2018 10:36:13 +0530 Message-Id: <1540530377-3509-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 changing 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 respective 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 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. 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, microblaze, mips, parisc, powerpc, sh, sparc, and xtensa. Below mentioned git repository contains more details. Git repo:- 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. Firoz Khan (4): m68k: rename system call table file name 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/Makefile | 2 +- arch/m68k/kernel/syscall_table.S | 26 +++ 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 | 403 -------------------------------- 12 files changed, 529 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