Module Name: src Committed By: skrll Date: Wed Nov 21 21:24:42 UTC 2018
Modified Files: src/lib/libc/arch/aarch64/gen: _lwp.c Log Message: _REG_LR should be _lwp_exit To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/aarch64/gen/_lwp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/arch/aarch64/gen/_lwp.c diff -u src/lib/libc/arch/aarch64/gen/_lwp.c:1.2 src/lib/libc/arch/aarch64/gen/_lwp.c:1.3 --- src/lib/libc/arch/aarch64/gen/_lwp.c:1.2 Sat Aug 4 10:22:09 2018 +++ src/lib/libc/arch/aarch64/gen/_lwp.c Wed Nov 21 21:24:42 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: _lwp.c,v 1.2 2018/08/04 10:22:09 ryo Exp $ */ +/* $NetBSD: _lwp.c,v 1.3 2018/11/21 21:24:42 skrll 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.2 2018/08/04 10:22:09 ryo Exp $"); +__RCSID("$NetBSD: _lwp.c,v 1.3 2018/11/21 21:24:42 skrll Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -58,7 +58,7 @@ _lwp_makecontext(ucontext_t *u, void (*s u->uc_mcontext.__gregs[_REG_X0] = (__greg_t)(uintptr_t)arg; u->uc_mcontext.__gregs[_REG_SP] = ((__greg_t)sp) & -16; - u->uc_mcontext.__gregs[_REG_X29] = (__greg_t)(uintptr_t)_lwp_exit; + u->uc_mcontext.__gregs[_REG_LR] = (__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;