From patchwork Tue Jul 31 10:36:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshinori Sato X-Patchwork-Id: 10550611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 781D4139A for ; Tue, 31 Jul 2018 10:36:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 637AA2A4E2 for ; Tue, 31 Jul 2018 10:36:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54E342A7BE; Tue, 31 Jul 2018 10:36:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1F072A4E2 for ; Tue, 31 Jul 2018 10:36:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731387AbeGaMP6 (ORCPT ); Tue, 31 Jul 2018 08:15:58 -0400 Received: from mail01.asahi-net.or.jp ([202.224.55.13]:55029 "EHLO mail01.asahi-net.or.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731119AbeGaMP6 (ORCPT ); Tue, 31 Jul 2018 08:15:58 -0400 Received: from h61-195-96-97.vps.ablenet.jp (h61-195-96-97.vps.ablenet.jp [61.195.96.97]) (Authenticated sender: PQ4Y-STU) by mail01.asahi-net.or.jp (Postfix) with ESMTPA id 9D9FE84A0D; Tue, 31 Jul 2018 19:36:16 +0900 (JST) Received: from yo-satoh-debian.localdomain (x074090.dynamic.ppp.asahi-net.or.jp [122.249.74.90]) by h61-195-96-97.vps.ablenet.jp (Postfix) with ESMTPSA id 89F4024006D; Tue, 31 Jul 2018 19:36:15 +0900 (JST) From: Yoshinori Sato To: dalias@libc.org, linux-sh@vger.kernel.org Cc: Yoshinori Sato Subject: [PATCH] sh: systemcall wireup Date: Tue, 31 Jul 2018 19:36:09 +0900 Message-Id: <20180731103609.127718-1-ysato@users.sourceforge.jp> X-Mailer: git-send-email 2.11.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Yoshinori Sato --- arch/sh/include/uapi/asm/unistd_32.h | 8 ++++++-- arch/sh/kernel/syscalls_32.S | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h index 58f04cf3d1d9..4f0fa3ab99f8 100644 --- a/arch/sh/include/uapi/asm/unistd_32.h +++ b/arch/sh/include/uapi/asm/unistd_32.h @@ -395,7 +395,11 @@ #define __NR_copy_file_range 380 #define __NR_preadv2 381 #define __NR_pwritev2 382 - -#define NR_syscalls 383 +#define __NR_pkey_mprotect 383 +#define __NR_pkey_alloc 384 +#define __NR_pkey_free 385 +#define __NR_statx 386 +#define __NR_io_pgetevents 387 +#define NR_syscalls 388 #endif /* __ASM_SH_UNISTD_32_H */ diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S index 254bc22ee57d..dd2aa16327af 100644 --- a/arch/sh/kernel/syscalls_32.S +++ b/arch/sh/kernel/syscalls_32.S @@ -400,3 +400,8 @@ ENTRY(sys_call_table) .long sys_copy_file_range /* 380 */ .long sys_preadv2 .long sys_pwritev2 + .long sys_pkey_mprotect + .long sys_pkey_alloc + .long sys_pkey_free /* 385 */ + .long sys_statx + .long sys_io_pgetevents