Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp655329imm; Fri, 10 Aug 2018 19:47:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyka5tA+dVwwcu3RwNDj2tW64waDSo+EjOSZfyPO8rIyVRNcqu2adaHM9M24ts/eHYBFkLZ X-Received: by 2002:a62:7590:: with SMTP id q138-v6mr9513870pfc.1.1533955633953; Fri, 10 Aug 2018 19:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533955633; cv=none; d=google.com; s=arc-20160816; b=WcVFjo9aKECgxscl5k3UMCes2oCU2uodkkofxNgdxRu09JLzGOkEngZouDojejl0Ak dPIW5uer0/utOrzBv57dcwDkAawFuzgfSzRZOLm7YMgIxeQENbH5ZNgF4Q1aM2mIFMgj ABjqSQZjcZn/xydcB4VUI6mqBvDuquCzFpgfHeUY698RmL6iFqYleVaJkv3DCG0NyHjv kttcWTJpSYHqvbzxr+zXPdycaoIYGMCcHsx1A1y7r+xuhkaU/ZufX6HvoWWLixQZ+KTW AChrxZZKuFZlBfJ2tFkfKXzmwS90Fp46oHQVMlBJLZ4gM3DDizqdLSeLHZ0L0h+SebEY p7hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pIpJHUN+OXpSY+tLca12Ezi293cv/1g+H5StM+ovl6o=; b=k+EBNsStw01UWGj6xJDgfEBE+wFng6LnXXSgeIrODKcNRC9sns5Wa80dmJlqaPc9sU dSWYNxZ+qxtT1zq3dsItylFfNfvsrjblQAK3gca5GqI4KBEn0bSa7w4CLcXPILVikfUt 6h+Cf9LoiBlQF9dgd4UM+P4CiqSpibomLb02MsX/tCsy9rARQsDZ2XvoGK3hYbTp5iDY fVnx7pdkbKgey2X6c4Z/5fr7IRHOzcxNke4Zmw2j9nqHrhwtAwmbYgJPLrpUtTg1BED+ L1BH4s5e0vv2xIqfLJV2Dn6xuEa2tyCYPLODovjbNrPfOihFyxaYhaI1KzX0+3RSAyBz POiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4-v6si9360362pgr.167.2018.08.10.19.46.59; Fri, 10 Aug 2018 19:47:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727412AbeHKFS3 (ORCPT + 99 others); Sat, 11 Aug 2018 01:18:29 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:60734 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbeHKFS3 (ORCPT ); Sat, 11 Aug 2018 01:18:29 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1foJub-0000QB-UZ; Sat, 11 Aug 2018 02:45:53 +0000 Date: Sat, 11 Aug 2018 03:45:53 +0100 From: Al Viro To: Richard Henderson Cc: Firoz Khan , linux-alpha@vger.kernel.org, ink@jurassic.park.msu.ru, mattst88@gmail.com, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, arnd@arndb.de, deepa.kernel@gmail.com Subject: Re: [PATCH 3/6] alpha: Unify the not-implemented system call entry name Message-ID: <20180811024553.GF6515@ZenIV.linux.org.uk> References: <1531736638-15294-1-git-send-email-firoz.khan@linaro.org> <1531736638-15294-4-git-send-email-firoz.khan@linaro.org> <20180811000455.GC6515@ZenIV.linux.org.uk> <98937991-cefa-b7f3-11c3-12727b3159b1@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98937991-cefa-b7f3-11c3-12727b3159b1@twiddle.net> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 07:31:55PM -0700, Richard Henderson wrote: > > +++ b/arch/alpha/kernel/entry.S > > @@ -473,7 +473,7 @@ entSys: > > bne $3, strace > > beq $4, 1f > > ldq $27, 0($5) > > -1: jsr $26, ($27), alpha_ni_syscall > > +1: jsr $26, ($27), sys_ni_syscall > > ldgp $gp, 0($26) > > blt $0, $syscall_error /* the call failed */ > > stq $0, 0($sp) > > Once upon a time I had a patch to make the hint > be sys_gettimeofday, as the most common syscall. > Dunno what happened to that. Might as well... ptraced case has it, non-ptraced doesn't. BTW, seeing that it's your code - why was unop used in alpha_ni_syscall? I don't remember the rules re pipeline stalls; is it that some earlier variants prefer unop to nop in such places? It's not that microoptimizing that one makes any difference, but just out of curiosity - would something like lda $0, -ENOSYS stq $sp, 0($sp) /* sp != 0 */ ret do just as well there?