Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6266344imu; Tue, 13 Nov 2018 21:27:40 -0800 (PST) X-Google-Smtp-Source: AJdET5fjNhAUyE7+R6kRAEl3HBAu9UaNDe3tnHsgmc6xXRQkh7duDveb+khhSs4vawIwgtuBnFSj X-Received: by 2002:a63:8043:: with SMTP id j64mr444302pgd.405.1542173260692; Tue, 13 Nov 2018 21:27:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542173260; cv=none; d=google.com; s=arc-20160816; b=Bu6TTgQk5XqGFta6Bm0rvpeeK8Y2UAptHjo4aNGwgeLtip8RgpiONJvP3CA1wOxSwi isRgLPjA5cFP0Neyjz/+hLn8LPUtKU1ov5g9lwxoikHHZcdz7als8tpX4ijxHzNmytlr VqU4bUrfg8VwbNUleWCk1CffWHg7LQp9FEj+8nQlCLxU6O+q6vO9Hk4ap0NqShSV6CL1 RrvDJEYFbLJF7ATvoltJlEVd9QZ7oEXOOjrAHpUTX+ruIHM129VwmTaEGmHNDxgABYp6 6gNelruFrTEHnwCxkimWMWOR0Lw6yHIKq/B1RNSOcFjXYhollswZQ/m/aMQNDTp9SNTh BjFQ== 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=bhHMjbmFdEIeEVFRJfvKLawH8ssnIqjAwld5NlNbj0Q=; b=UD4xJ7NZirwMlZTuNsM2b1wzD0M3IRGgLiHP9y8moySegES6mbHNNuw4v9bVmV24Ye /tM+hVg7FIdpcIow49HuA0fvYVwBratn2iALEKd1ThBl/bc5gWynjsaDYGUAFzAVQbbM T3/yX5yIzo+/Kz+AD4Kw4D2R9BX515zX0EbDKQWoQwVxhvvQuqf8idL7sx0aNcsj3ktk D9GcvSJ57ono3m1nyoz2sPKnIqr06f9s5kNrWvKeeWG7LIUifswJ43avJNWGgaJRhotG yvvXonINVDp4bAdT/KNLa2BOPXEDL9gwKv86RQHrmu6s7K+RJQxQZCHU0N5qGKgMSHAi 9GAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c6iwuKfM; 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 r13-v6si22010657pgk.127.2018.11.13.21.27.24; Tue, 13 Nov 2018 21:27:40 -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=c6iwuKfM; 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 S1731278AbeKNP2h (ORCPT + 99 others); Wed, 14 Nov 2018 10:28:37 -0500 Received: from mail-pf1-f176.google.com ([209.85.210.176]:35335 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727844AbeKNP2h (ORCPT ); Wed, 14 Nov 2018 10:28:37 -0500 Received: by mail-pf1-f176.google.com with SMTP id v9-v6so7302655pff.2 for ; Tue, 13 Nov 2018 21:26:57 -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=bhHMjbmFdEIeEVFRJfvKLawH8ssnIqjAwld5NlNbj0Q=; b=c6iwuKfMNdMl6vYVLdk9BvqyBK869h7z2jQdE8OCqKrerGvH5jH4qswvVCBTjP6DAJ f1M27xsN6SD6fe0Y2VhsEVG3ZNEB1oktJWT7hHL28Pob1AtChKJTu2x92+W46ObdzsI7 hxo35JoX/9+VewllSaI3lh3mGWi7L6c7JG62Y= 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=bhHMjbmFdEIeEVFRJfvKLawH8ssnIqjAwld5NlNbj0Q=; b=CNa99eCWUDyShTnD5Cqgz+JyrO+KjGIy0qAahlYKcY78dM3EYPqhB1n9t8bHZvlyUN oOMYzt/auQ20oKR9rS6r8z+sdnGBMo/cxB8HQDYVVEPvtsa8ruGKsg81CYn+KiJImrMH u6pO5vZNivO0evR31tPyUZ2dQ/60kRJz9sZkEl90n+k14bWYzzdnd4QK5x611/4UcPDS gFvMQjzUMWabLyd/Suu+uA0BGsCIa16srlAubrOCFzILjHk0bBtvDd4YfHWtQtgSIa8i UUWA0j32GAxtAtn+JJBb2+I9K6gUDrjFQkjaui6tOYOPox0Si80220XKAM3ktE2yf/1d 1OLA== X-Gm-Message-State: AGRZ1gI9nZ3nkJ4hHrWWhqkCGhxRBRlGZ70MkGXA/5n7TzYMtNJpQEvV ZuAVPDGeFRzv2m/sBuaPxuY7MQ== X-Received: by 2002:a63:5c22:: with SMTP id q34mr434505pgb.417.1542173217504; Tue, 13 Nov 2018 21:26:57 -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 34sm36331746pgp.90.2018.11.13.21.26.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Nov 2018 21:26:56 -0800 (PST) From: Firoz Khan To: "David S . Miller" , sparclinux@vger.kernel.org, Geert Uytterhoeven , 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/4] sparc: system call table generation support Date: Wed, 14 Nov 2018 10:56:27 +0530 Message-Id: <1542173191-24981-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. - Compat entry name, if required. 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, m68k, microblaze, mips, parisc, powerpc, sh 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. - added io_pgetevents entry in the syscall.tbl. - updated the compat system call table. Changes since v1: - optimized/updated the syscall table generation scripts. - fixed all mixed indentation issues in syscall.tbl. - added "comments" in syscall.tbl. Firoz Khan (4): sparc: move __IGNORE* entries to non uapi header sparc: add __NR_syscalls along with NR_syscalls sparc: add system call table generation support sparc: generate uapi header and system call table files arch/sparc/Makefile | 3 + arch/sparc/include/asm/Kbuild | 4 +- arch/sparc/include/asm/unistd.h | 18 ++ arch/sparc/include/uapi/asm/Kbuild | 2 + arch/sparc/include/uapi/asm/unistd.h | 426 +------------------------------ arch/sparc/kernel/syscalls/Makefile | 55 ++++ arch/sparc/kernel/syscalls/syscall.tbl | 409 +++++++++++++++++++++++++++++ arch/sparc/kernel/syscalls/syscallhdr.sh | 36 +++ arch/sparc/kernel/syscalls/syscalltbl.sh | 36 +++ arch/sparc/kernel/systbls_32.S | 81 +----- arch/sparc/kernel/systbls_64.S | 157 +----------- 11 files changed, 572 insertions(+), 655 deletions(-) create mode 100644 arch/sparc/kernel/syscalls/Makefile create mode 100644 arch/sparc/kernel/syscalls/syscall.tbl create mode 100644 arch/sparc/kernel/syscalls/syscallhdr.sh create mode 100644 arch/sparc/kernel/syscalls/syscalltbl.sh -- 1.9.1