Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/alpha/gen Remove clearing of ucontext_t, the o...



details:   https://anonhg.NetBSD.org/src/rev/8124a8c40539
branches:  trunk
changeset: 785428:8124a8c40539
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Mar 13 08:05:46 2013 +0000

description:
Remove clearing of ucontext_t, the only random register values now are
argument and scratch registers (which will be reloaded after return anyway).

diffstat:

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

diffs (18 lines):

diff -r ee42c343bbab -r 8124a8c40539 lib/libc/arch/alpha/gen/__longjmp14.c
--- a/lib/libc/arch/alpha/gen/__longjmp14.c     Wed Mar 13 03:08:17 2013 +0000
+++ b/lib/libc/arch/alpha/gen/__longjmp14.c     Wed Mar 13 08:05:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: __longjmp14.c,v 1.6 2013/03/12 19:38:20 martin Exp $   */
+/*     $NetBSD: __longjmp14.c,v 1.7 2013/03/13 08:05:46 martin Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -56,8 +56,6 @@
        if (val == 0)
                val = -1;
 
-       memset(&uc, 0, sizeof uc);
-
        /* Set _UC_SIGMASK and _UC_CPU */
        uc.uc_flags = _UC_SIGMASK | _UC_CPU;
 



Home | Main Index | Thread Index | Old Index