Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/lib/libpthread Align space for new ucontext_t, if neces...
details: https://anonhg.NetBSD.org/src/rev/dc1d248b2856
branches: nathanw_sa
changeset: 506614:dc1d248b2856
user: nathanw <nathanw%NetBSD.org@localhost>
date: Fri Dec 20 01:07:58 2002 +0000
description:
Align space for new ucontext_t, if necessary.
diffstat:
lib/libpthread/pthread_stack.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 8031e11221b7 -r dc1d248b2856 lib/libpthread/pthread_stack.c
--- a/lib/libpthread/pthread_stack.c Fri Dec 20 01:06:16 2002 +0000
+++ b/lib/libpthread/pthread_stack.c Fri Dec 20 01:07:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_stack.c,v 1.1.2.7 2002/11/03 12:23:05 skrll Exp $ */
+/* $NetBSD: pthread_stack.c,v 1.1.2.8 2002/12/20 01:07:58 nathanw Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -137,6 +137,9 @@
/* Set up an initial ucontext pointer to a "safe" area */
t->pt_uc =(ucontext_t *) ((char *)t->pt_stack.ss_sp +
t->pt_stack.ss_size - (pagesize/2));
+#ifdef _UC_UCONTEXT_ALIGN
+ t->pt_uc = (ucontext_t *)((uintptr_t)t->pt_uc & _UC_UCONTEXT_ALIGN);
+#endif
return t;
}
Home |
Main Index |
Thread Index |
Old Index