From patchwork Mon Jul 16 10:23:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firoz Khan X-Patchwork-Id: 141986 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2242199ljj; Mon, 16 Jul 2018 03:24:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfMabnzWpgXyoZKS9WA24s6WMHNZTzdBAOsol5+KhF12iKor6/87b3id+5SR+EnDz31DtbS X-Received: by 2002:a17:902:8645:: with SMTP id y5-v6mr16108351plt.334.1531736673945; Mon, 16 Jul 2018 03:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531736673; cv=none; d=google.com; s=arc-20160816; b=zY5gGeG3LawoXzGPZeE2U9hB37lXW13iIOmowtgn49Cu7HfF3EYez49ghP3/+13TjL EEV1bpns5U6OR6ZYKHeUyewlzxFqvO9E/gE92+HdcpdlbTJy0rHS8JfUAWnRwWRbKW// xsSz4YO5A0kWTxBRp7w03B+MHeKf3rlp8PyafQH/UzLpCH5twP7i0B0KVQGp2DwB3E5F Gvl3IRgSlQhnT4XlalIQC+k65GFogTL8wfVgPtj/wZStM/gjBOEGHQM8qYOtx7b2P1vL M4QLYVkl1nwYAAO9WI+5q9K8NI3nJg4CqHq0QL2hvAh6riB2qgHEg8YG307hqg3Ao6IY 81bg== 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:arc-authentication-results; bh=7zxb9x25D+o72PMUdhr2y2Hd7CM8FXJU04kdXZt7GfU=; b=HXco2upi1djPYQilc38s5OsRqQ60e2wqO7JANq5rA4tTtETzkBjqVCRG/n/nffYLjB sj0OUiNpfcmI8JU2lVvPr5n52YXtHlAyKiHhNZkzj1wVV1eOxMh4T4l4dQtCAdnvCGxO AZf03xcfC7StVb6ReOMGQtuc87cxp1LmmLaDGOZVkmDmHd0iD3J7kKOFbiIeq2US4ZkL EG6hr3ojBvORvpOSx40RbyFHjZ2osWrD2IQrJr5kuc3QfkebvFtc0wqQrBnjgQJ5jz2F YGud3uSTBr1pRv1qg5dRky1h2wYtWeEPlMBNgc3WebC9P3xQtY6XJj1Hdb7FInyKsHFs RRxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WRISZPDV; 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 1-v6si11905290pgb.107.2018.07.16.03.24.33; Mon, 16 Jul 2018 03:24:33 -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=WRISZPDV; 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 S1729853AbeGPKvP (ORCPT + 31 others); Mon, 16 Jul 2018 06:51:15 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36495 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbeGPKvO (ORCPT ); Mon, 16 Jul 2018 06:51:14 -0400 Received: by mail-pg1-f194.google.com with SMTP id m19-v6so7325856pgv.3 for ; Mon, 16 Jul 2018 03:24:30 -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=7zxb9x25D+o72PMUdhr2y2Hd7CM8FXJU04kdXZt7GfU=; b=WRISZPDVsrgDrxXZKgjiB/6QmYOv5+m6lekAl5R8NBpDpeENQY0j5Ac7LvzWsMgc+R UZiQuFiN502iIajjyhOPA4WP3mw9yHOsT22mfRYrYSm+7aA95Vn1HIjDkdnyNqHKEnG+ szNoe8KIWqOMXT3KFZ3LGjAI1j1R1Tb6qArmU= 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=7zxb9x25D+o72PMUdhr2y2Hd7CM8FXJU04kdXZt7GfU=; b=ndxE48QRREsMLyrC+xat5FjKj3ECpWOVnkJoEm1DqHt4UttAuzgeaY+vPOnCGyGREa jNwomsbfGoQqL26W6tFDfQDNMqVxkceTaJhK9R3HXcer67LeuwqxFXCs9Sn0LsB4kNtv kh1O7hf4aiCbPplSRYf+rqeYI6GP50aCh1vgf2Z831odyKiA6HG/+irh+QNEcnU58Ox4 SRao+f0bdXhFK4/UgQjcCREfZxV0qEEhe2OvJ6b9GX5+ULfNsUOidtOW5VEYdlaYj5il SjAEPrX4gEcDIfbkG0pAIiVhf48P9kyZCMZFUGwgL9yNE0IbiRHcfbb2QFUid/Vjz/yf xQiQ== X-Gm-Message-State: AOUpUlFtxAL9ppiwZimv5OJZx8gTmcZqPgw0eYD7IlsywT4VgrQfs3wX nbX+FUjdLgSVp6AuUTrqaUBESw== X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr15002887pgg.370.1531736669813; Mon, 16 Jul 2018 03:24:29 -0700 (PDT) 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 l27-v6sm17808087pfi.42.2018.07.16.03.24.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Jul 2018 03:24:29 -0700 (PDT) From: Firoz Khan To: linux-alpha@vger.kernel.org, rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com Cc: y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com, Firoz Khan Subject: [PATCH 0/6] System call table generation support Date: Mon, 16 Jul 2018 15:53:52 +0530 Message-Id: <1531736638-15294-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 goal of this patch series is to easily add/modify/delete a system call by changing entry in syscall.tbl file. No need to manually edit many files. The another goal of this patch series is to to unify the system call implementation across all the architectures. ARM, s390 and x86 architecuture does have the similar support. I leverage their implementation to come up with a generic solution. I have done the same support for work for ia64, m68k, microblaze, 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 change two dozen of system calls to solve Y2038 issue. So this implementation will help to easily modify from existing system call to Y2038 compatible system calls. Firoz Khan (6): alpha: Move __IGNORE* entries to non uapi header alpha: Add CONFIG_OSF4_COMPAT for compat syscall support alpha: Unify the not-implemented system call entry name alpha: Replace NR_SYSCALLS macro from asm/unistd.h alpha: Add system call table generation support alpha: uapi header and system call table file generation arch/alpha/Makefile | 3 + arch/alpha/include/asm/Kbuild | 3 +- arch/alpha/include/asm/unistd.h | 7 +- arch/alpha/include/uapi/asm/Kbuild | 2 + arch/alpha/include/uapi/asm/unistd.h | 489 --------------------------- arch/alpha/kernel/Makefile | 2 +- arch/alpha/kernel/entry.S | 4 +- arch/alpha/kernel/osf_sys.c | 9 +- arch/alpha/kernel/syscall.S | 20 ++ arch/alpha/kernel/syscalls/Makefile | 37 +++ arch/alpha/kernel/syscalls/syscall.tbl | 450 +++++++++++++++++++++++++ arch/alpha/kernel/syscalls/syscallhdr.sh | 33 ++ arch/alpha/kernel/syscalls/syscalltbl.sh | 28 ++ arch/alpha/kernel/systbls.S | 552 ------------------------------- 14 files changed, 589 insertions(+), 1050 deletions(-) delete mode 100644 arch/alpha/include/uapi/asm/unistd.h create mode 100644 arch/alpha/kernel/syscall.S create mode 100644 arch/alpha/kernel/syscalls/Makefile create mode 100644 arch/alpha/kernel/syscalls/syscall.tbl create mode 100644 arch/alpha/kernel/syscalls/syscallhdr.sh create mode 100644 arch/alpha/kernel/syscalls/syscalltbl.sh delete mode 100644 arch/alpha/kernel/systbls.S -- 2.7.4