summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-07-20 12:41:38 +0000
committerdeischen <deischen@FreeBSD.org>2003-07-20 12:41:38 +0000
commit23a97de297fe360f6620f6ecad66138862322608 (patch)
tree6289e4884961d3bf673b21d5121801b40a65ccff /lib
parent1563c405c7a8de1a564f4b1304529b284d604860 (diff)
downloadFreeBSD-src-23a97de297fe360f6620f6ecad66138862322608.zip
FreeBSD-src-23a97de297fe360f6620f6ecad66138862322608.tar.gz
Add missing arguments to _amd64_restore_context() when called from
THR_SETCONTEXT().
Diffstat (limited to 'lib')
-rw-r--r--lib/libkse/arch/amd64/include/pthread_md.h6
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libkse/arch/amd64/include/pthread_md.h b/lib/libkse/arch/amd64/include/pthread_md.h
index e14357f..3c7cd03 100644
--- a/lib/libkse/arch/amd64/include/pthread_md.h
+++ b/lib/libkse/arch/amd64/include/pthread_md.h
@@ -33,8 +33,10 @@
#include <ucontext.h>
-#define THR_GETCONTEXT(ucp) (void)_amd64_save_context(&(ucp)->uc_mcontext)
-#define THR_SETCONTEXT(ucp) (void)_amd64_restore_context(&(ucp)->uc_mcontext)
+#define THR_GETCONTEXT(ucp) \
+ (void)_amd64_save_context(&(ucp)->uc_mcontext)
+#define THR_SETCONTEXT(ucp) \
+ (void)_amd64_restore_context(&(ucp)->uc_mcontext, NULL, NULL)
#define THR_ALIGNBYTES 15
#define THR_ALIGN(td) (((uintptr_t)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index e14357f..3c7cd03 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -33,8 +33,10 @@
#include <ucontext.h>
-#define THR_GETCONTEXT(ucp) (void)_amd64_save_context(&(ucp)->uc_mcontext)
-#define THR_SETCONTEXT(ucp) (void)_amd64_restore_context(&(ucp)->uc_mcontext)
+#define THR_GETCONTEXT(ucp) \
+ (void)_amd64_save_context(&(ucp)->uc_mcontext)
+#define THR_SETCONTEXT(ucp) \
+ (void)_amd64_restore_context(&(ucp)->uc_mcontext, NULL, NULL)
#define THR_ALIGNBYTES 15
#define THR_ALIGN(td) (((uintptr_t)(td) + THR_ALIGNBYTES) & ~THR_ALIGNBYTES)
OpenPOWER on IntegriCloud