Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh5/sh5 Don't clear the original contents of r0 in ...



details:   https://anonhg.NetBSD.org/src/rev/e67fc51c2718
branches:  trunk
changeset: 537519:e67fc51c2718
user:      scw <scw%NetBSD.org@localhost>
date:      Wed Oct 02 08:13:09 2002 +0000

description:
Don't clear the original contents of r0 in sigreturn(). We're returning
to the interrupted context, not the sigreturn syscall stub.

diffstat:

 sys/arch/sh5/sh5/sig_machdep.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (18 lines):

diff -r 12651dce2133 -r e67fc51c2718 sys/arch/sh5/sh5/sig_machdep.c
--- a/sys/arch/sh5/sh5/sig_machdep.c    Wed Oct 02 08:10:34 2002 +0000
+++ b/sys/arch/sh5/sh5/sig_machdep.c    Wed Oct 02 08:13:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sig_machdep.c,v 1.8 2002/09/10 12:33:44 scw Exp $      */
+/*     $NetBSD: sig_machdep.c,v 1.9 2002/10/02 08:13:09 scw Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -215,8 +215,5 @@
        /* Restore signal mask. */
        (void) sigprocmask1(p, SIG_SETMASK, &ksc.sc_mask, 0);
 
-       /* Flag "no error" to the syscall stub  */
-       tf->tf_caller.r0 = 0;
-
        return (EJUSTRETURN);
 }



Home | Main Index | Thread Index | Old Index