summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2003-08-05 19:37:20 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2003-08-05 19:37:20 +0000
commit9a3ea63e79fd991ecfff0d184372e55a2b9d1115 (patch)
tree7cebe5609986adfbfb2105c01494553f64a85897
parent503148a20c102f332082f31aebcc29cd81dd3d71 (diff)
Notes
-rw-r--r--lib/libkse/arch/ia64/include/pthread_md.h9
-rw-r--r--lib/libpthread/arch/ia64/include/pthread_md.h9
2 files changed, 10 insertions, 8 deletions
diff --git a/lib/libkse/arch/ia64/include/pthread_md.h b/lib/libkse/arch/ia64/include/pthread_md.h
index 94e05a0b4f57..6d30025c5c1e 100644
--- a/lib/libkse/arch/ia64/include/pthread_md.h
+++ b/lib/libkse/arch/ia64/include/pthread_md.h
@@ -29,11 +29,12 @@
#ifndef _PTHREAD_MD_H_
#define _PTHREAD_MD_H_
-#define THR_GETCONTEXT(ucp) getcontext(ucp)
-#define THR_SETCONTEXT(ucp) setcontext(ucp)
+#define THR_GETCONTEXT(ucp) _ia64_save_context(&(ucp)->uc_mcontext)
+#define THR_SETCONTEXT(ucp) _ia64_restore_context(&(ucp)->uc_mcontext, \
+ 0, NULL)
-#define THR_ALIGNBYTES 15
-#define THR_ALIGN(td) (((uintptr_t)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
+#define THR_ALIGNBYTES 0
+#define THR_ALIGN(td) (td)
/* KSE Specific Data. */
struct ksd {
diff --git a/lib/libpthread/arch/ia64/include/pthread_md.h b/lib/libpthread/arch/ia64/include/pthread_md.h
index 94e05a0b4f57..6d30025c5c1e 100644
--- a/lib/libpthread/arch/ia64/include/pthread_md.h
+++ b/lib/libpthread/arch/ia64/include/pthread_md.h
@@ -29,11 +29,12 @@
#ifndef _PTHREAD_MD_H_
#define _PTHREAD_MD_H_
-#define THR_GETCONTEXT(ucp) getcontext(ucp)
-#define THR_SETCONTEXT(ucp) setcontext(ucp)
+#define THR_GETCONTEXT(ucp) _ia64_save_context(&(ucp)->uc_mcontext)
+#define THR_SETCONTEXT(ucp) _ia64_restore_context(&(ucp)->uc_mcontext, \
+ 0, NULL)
-#define THR_ALIGNBYTES 15
-#define THR_ALIGN(td) (((uintptr_t)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
+#define THR_ALIGNBYTES 0
+#define THR_ALIGN(td) (td)
/* KSE Specific Data. */
struct ksd {