From patchwork Tue Sep 8 13:45:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 7141061 X-Patchwork-Delegate: deller@gmx.de Return-Path: X-Original-To: patchwork-linux-parisc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C47759F380 for ; Tue, 8 Sep 2015 13:45:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB9D6206EB for ; Tue, 8 Sep 2015 13:45:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E2041206F4 for ; Tue, 8 Sep 2015 13:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754727AbbIHNpi (ORCPT ); Tue, 8 Sep 2015 09:45:38 -0400 Received: from mout.gmx.net ([212.227.15.18]:49244 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175AbbIHNph (ORCPT ); Tue, 8 Sep 2015 09:45:37 -0400 Received: from ls3530.dhcp.wdf.sap.corp ([155.56.40.73]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MXZbS-1ZBZFY3k7a-00WT2U; Tue, 08 Sep 2015 15:45:34 +0200 Date: Tue, 8 Sep 2015 15:45:32 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley Subject: [PATCH] parisc: Wire up userfaultfd syscall Message-ID: <20150908134532.GA11965@ls3530.dhcp.wdf.sap.corp> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:+r+mJ4id0hmwb042cL0oVD8EgveNHm2nqSKV4K7eOhl1IK1Ybdd XY8Jn3zHesmEQ7PfAMNbCuD5u+ITpDwYjf6wshAd2MaoVXzNWvp9kVo8pHW1yqmTftHpVSf pni0zGHbVN75FETXf4BIVw9SUdhthO6kIeQgo2Uw16hBO21LmlRlAJp92CPMP+PmFnvZ+0V mUVNBeN5E1wOB0+kdN60g== X-UI-Out-Filterresults: notjunk:1; V01:K0:Ea+SoIAm5QI=:4u2rZ4DS1jqmqZSLCz0roA Xq6Ttty2TELZ2P4JUc/PHHjfaw3A3CV2Xrc2CBuXnnA30SaV4nvPOHYZ7Y4qGNcVOGsR+itcs hApkrfKVAMniujO45BiIPsQX2h3sXQEe5I4fWeK1zwwFDr6khSr3CCxAIravwQVRHmSqHXfW0 qrR4O8E8UwpEKGhLP41MO5rhtUr/x2R+uUNo8bBegy37UxXHXjCXamB610OSwkEx+7kNvKptu 19pQUwAp7irVmhYcYKA773RfnC+9tHgFBxOKQ0HMBH/E4iSFaoblRoo1XUL98gE2tc6Myom4y 0/Pb4bDDSylP6i49Wr6uijEwKga+7QF9yicsvvwZyaufSNn6oZlJVKjozWgNoeftt/z/s5VDC Ss2AgOrk1JWY+t38805ELOgWSb+fO9D7nfVX0qigltQ7w4zHB+cjYQzr1dCqR7SaYTOhVkZrI Xv7ZmII1ZkD7yEU0mopALDAgv05G9Da1hz1knSg/szltr7GiAqRm4er8H8CewjFL7kNI1ffIX WLEfSnEzSwxd4xZ1XedfDkD69MYdCOQHeb4PbA6aNMOmgA4nNfjDC8ZIuwsFBmQJGjQQFpLcK Ig15geoWNeMEnlL+MeYpm3PXi2F1l7v+2Ryz0h9+l5wkzb0Vlcr1nkqYIqQOgsvvaCtDZDEMe AkvId+w1PnTLzSht9sj9k2lw3K8g97RTuUvufvztfOhjoZuwpA6te/mGPB5yfmy3DR6JcnbnT Z2X2LS/G7oicKpp7 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/uapi/asm/unistd.h b/arch/parisc/include/uapi/asm/unistd.h index 2e639d7..e24dcc6 100644 --- a/arch/parisc/include/uapi/asm/unistd.h +++ b/arch/parisc/include/uapi/asm/unistd.h @@ -358,8 +358,9 @@ #define __NR_memfd_create (__NR_Linux + 340) #define __NR_bpf (__NR_Linux + 341) #define __NR_execveat (__NR_Linux + 342) +#define __NR_userfaultfd (__NR_Linux + 343) -#define __NR_Linux_syscalls (__NR_execveat + 1) +#define __NR_Linux_syscalls (__NR_userfaultfd + 1) #define __IGNORE_select /* newselect */ diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index 8eefb12..2b7db74 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S @@ -438,6 +438,7 @@ ENTRY_SAME(memfd_create) /* 340 */ ENTRY_SAME(bpf) ENTRY_COMP(execveat) + ENTRY_SAME(userfaultfd) .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b))