Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/sparc64/gen Simplify slightly and fix a comment.



details:   https://anonhg.NetBSD.org/src/rev/752aaae4abfd
branches:  trunk
changeset: 559711:752aaae4abfd
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Mar 22 18:35:51 2004 +0000

description:
Simplify slightly and fix a comment.

diffstat:

 lib/libc/arch/sparc64/gen/__longjmp14.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r d3b373330079 -r 752aaae4abfd lib/libc/arch/sparc64/gen/__longjmp14.c
--- a/lib/libc/arch/sparc64/gen/__longjmp14.c   Mon Mar 22 18:02:12 2004 +0000
+++ b/lib/libc/arch/sparc64/gen/__longjmp14.c   Mon Mar 22 18:35:51 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __longjmp14.c,v 1.3 2004/01/19 18:20:35 martin Exp $   */
+/*     $NetBSD: __longjmp14.c,v 1.4 2004/03/22 18:35:51 martin Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -62,13 +62,11 @@
        if (sc->sc_sp == 0)
                goto err;
 
-       /* Initialize context with current values */
-       getcontext(&uc);
-
        /*
-        * Set _UC_SIGMASK, _UC_CPU. No FPU data saved, so we can't restore
+        * Set _UC_CPU. No FPU data saved, so we can't restore
         * that. Set _UC_{SET,CLR}STACK according to SS_ONSTACK
         */
+       memset(&uc, 0, sizeof(uc));
        uc.uc_flags = _UC_CPU | (sc->sc_onstack ? _UC_SETSTACK : _UC_CLRSTACK);
 
        /*



Home | Main Index | Thread Index | Old Index