linux-mips
[Top] [All Lists]

Re: Question about signal syscalls !

To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Subject: Re: Question about signal syscalls !
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 1 Feb 2007 13:57:34 +0000
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <cda58cb80702010243y4a36026i6945f2a5cd3791d0@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cda58cb80702010243y4a36026i6945f2a5cd3791d0@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.2i
On Thu, Feb 01, 2007 at 11:43:13AM +0100, Franck Bui-Huu wrote:

> I'm probably missing something very obvious so the subject could have
> been "Dumb question of the week". So please be nice when answering ;)
> 
> I'm wondering why we need to save/restore the static registers
> (s0...s7) when dealing with some  signal system calls. Specially all
> of them which are declared by using save_static_function() macros.

The values of those registers need to be preserved so they can later be
copied into the signal frame.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>