linux-mips
[Top] [All Lists]

[PATCH 8/8] signal32: no need to save c0_status register in setup_sigcon

To: ralf@linux-mips.org
Subject: [PATCH 8/8] signal32: no need to save c0_status register in setup_sigcontext32()
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Wed, 24 Jan 2007 15:12:11 +0100
Cc: linux-mips@linux-mips.org, Franck Bui-Huu <fbuihuu@gmail.com>
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=j7zmXYIetjEJIkLrI+/JTb7UWlU1N98F36IHafWdKD1q83f7v6+Bhhy0hCyMDa0B+o7xGyLTP+gAmXOcGGjqlCPL7mTTatwupElLoYNv0QgNf+mSS0vw+t6HYIWnyY64VFrMA78Da5TdwWw8HgoNezTzxBRwiixN4OXKY1J1DvY=
In-reply-to: <11696479312279-git-send-email-fbuihuu@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <11696479312279-git-send-email-fbuihuu@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Franck Bui-Huu <fbuihuu@gmail.com>

All the information in the MIPS c0_status register is priviledged.
Nothing that would constitute part of the thread context.

The one flag one could possibly argument about might be c0_status.fr
but none of the ABIs or tools or application software can make use
of it.

So for consistency with restore_sigcontext32(), which does not
restore c0_status register, this patch remove the saving part.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
 arch/mips/kernel/signal32.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/signal32.c b/arch/mips/kernel/signal32.c
index 5d102ef..0994d6e 100644
--- a/arch/mips/kernel/signal32.c
+++ b/arch/mips/kernel/signal32.c
@@ -170,7 +170,6 @@ static int setup_sigcontext32(struct pt_regs *regs,
        int i;
 
        err |= __put_user(regs->cp0_epc, &sc->sc_pc);
-       err |= __put_user(regs->cp0_status, &sc->sc_status);
 
        err |= __put_user(0, &sc->sc_regs[0]);
        for (i = 1; i < 32; i++)
-- 
1.4.4.3.ge6d4


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