[Top] [All Lists]

Re: Question about signal syscalls !

To: Franck Bui-Huu <>
Subject: Re: Question about signal syscalls !
From: David Daney <>
Date: Fri, 02 Feb 2007 08:04:45 -0800
Cc: Ralf Baechle <>, linux-mips <>
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
User-agent: Thunderbird (Windows/20061207)
Franck Bui-Huu wrote:
On 2/1/07, David Daney <> wrote:
I don't think *any* registers *need* to be saved on sys_sigreturn().
The values in sigcontext on the user stack associated with the system
call are all used instead of the actual register values.

Sorry but I don't understand what you mean. Could you explain ?
sys_sigreturn does not return to the caller in the conventional sense. The entire user context (i.e. the value of *all* registers) is replaced with the values stored in the sigcontext structure on the caller's stack. If all registers are being restored from the sigcontext, then there is no need to save the current values of the registers, because they will never be used.

David Daney

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