Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread Revert previous



details:   https://anonhg.NetBSD.org/src/rev/2474239e330b
branches:  trunk
changeset: 744318:2474239e330b
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jan 29 15:31:14 2020 +0000

description:
Revert previous

Two assignments are correct.

diffstat:

 lib/libpthread/pthread.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c9d6e58fe3c0 -r 2474239e330b lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c  Wed Jan 29 15:15:00 2020 +0000
+++ b/lib/libpthread/pthread.c  Wed Jan 29 15:31:14 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.c,v 1.159 2020/01/29 15:15:00 kamil Exp $      */
+/*     $NetBSD: pthread.c,v 1.160 2020/01/29 15:31:14 kamil Exp $      */
 
 /*-
  * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008, 2020
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.159 2020/01/29 15:15:00 kamil Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.160 2020/01/29 15:31:14 kamil Exp $");
 
 #define        __EXPOSE_STACK  1
 
@@ -362,9 +362,8 @@
                    newthread->pt_stack.ss_size == stacksize &&
                    newthread->pt_guardsize == guardsize)
                        return 0;
-#ifdef __MACHINE_STACK_GROWS_UP
                stackbase2 = newthread->pt_stack.ss_sp;
-#else
+#ifndef __MACHINE_STACK_GROWS_UP
                stackbase2 = (char *)stackbase2 - newthread->pt_guardsize;
 #endif
                munmap(stackbase2,



Home | Main Index | Thread Index | Old Index