Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/aarch64/gen need to set _UC_TLSBASE of uc_flag...



details:   https://anonhg.NetBSD.org/src/rev/53a9a7a64565
branches:  trunk
changeset: 365180:53a9a7a64565
user:      ryo <ryo%NetBSD.org@localhost>
date:      Sat Aug 04 10:22:09 2018 +0000

description:
need to set _UC_TLSBASE of uc_flags for _lwp_makecontext().
pointed out from skrll@. thanks.

diffstat:

 lib/libc/arch/aarch64/gen/_lwp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 4f29c53fef38 -r 53a9a7a64565 lib/libc/arch/aarch64/gen/_lwp.c
--- a/lib/libc/arch/aarch64/gen/_lwp.c  Fri Aug 03 17:04:30 2018 +0000
+++ b/lib/libc/arch/aarch64/gen/_lwp.c  Sat Aug 04 10:22:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.1 2014/08/10 05:47:36 matt Exp $ */
+/* $NetBSD: _lwp.c,v 1.2 2018/08/04 10:22:09 ryo Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.1 2014/08/10 05:47:36 matt Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.2 2018/08/04 10:22:09 ryo Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -61,4 +61,5 @@
        u->uc_mcontext.__gregs[_REG_X29] = (__greg_t)(uintptr_t)_lwp_exit;
        u->uc_mcontext.__gregs[_REG_PC] = (__greg_t)(uintptr_t)start;
        u->uc_mcontext.__gregs[_REG_TPIDR] = (__greg_t)(uintptr_t)private;
+       u->uc_flags |= _UC_TLSBASE;
 }



Home | Main Index | Thread Index | Old Index