From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 01 Feb 2007 18:10:32 +0000 (GMT) Received: from localhost.localdomain ([127.0.0.1]:11452 "EHLO dl5rb.ham-radio-op.net") by ftp.linux-mips.org with ESMTP id S20038962AbXBASKb (ORCPT ); Thu, 1 Feb 2007 18:10:31 +0000 Received: from denk.linux-mips.net (denk.linux-mips.net [127.0.0.1]) by dl5rb.ham-radio-op.net (8.13.8/8.13.8) with ESMTP id l11IATVo018480; Thu, 1 Feb 2007 18:10:29 GMT Received: (from ralf@localhost) by denk.linux-mips.net (8.13.8/8.13.8/Submit) id l11IASdV018479; Thu, 1 Feb 2007 18:10:28 GMT Date: Thu, 1 Feb 2007 18:10:28 +0000 From: Ralf Baechle To: Franck Bui-Huu Cc: linux-mips Subject: Re: Question about signal syscalls ! Message-ID: <20070201181028.GA16964@linux-mips.org> References: <20070201135734.GB12728@linux-mips.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 13885 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Thu, Feb 01, 2007 at 03:54:40PM +0100, Franck Bui-Huu wrote: > Let's take for example sys_sigreturn(). In my understanding this > syscall is used automatically when the signal handler returns. At this > time, I don't see the point to save the static registers since they > have been already saved by setup_sigcontext(). > > Actually I don't see why they need to be saved/restored at all... There is no need. Seems you found a harmless but longstanding but introduced by c40738a70f3e02e8554b78af334dc95356a78989. Ralf