summaryrefslogtreecommitdiffstats
path: root/sys/ia64
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-04-29 11:04:31 +0000
committerdim <dim@FreeBSD.org>2012-04-29 11:04:31 +0000
commit81a3e2b46db5474df3633b850805e5e981a6cbb4 (patch)
tree698e4c5df1fba3867e4ca78763a6760206f74894 /sys/ia64
parent6b0b09e72a82ff0e99c864ca023a9eb62f72d629 (diff)
downloadFreeBSD-src-81a3e2b46db5474df3633b850805e5e981a6cbb4.zip
FreeBSD-src-81a3e2b46db5474df3633b850805e5e981a6cbb4.tar.gz
Add a convenience macro for the returns_twice attribute, and apply it to
the prototypes of the appropriate functions (getcontext, savectx, setjmp, sigsetjmp and vfork). MFC after: 2 weeks
Diffstat (limited to 'sys/ia64')
-rw-r--r--sys/ia64/include/pcb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ia64/include/pcb.h b/sys/ia64/include/pcb.h
index 59334bf..dac7169 100644
--- a/sys/ia64/include/pcb.h
+++ b/sys/ia64/include/pcb.h
@@ -65,10 +65,10 @@ struct trapframe;
void makectx(struct trapframe *, struct pcb *);
void restorectx(struct pcb *) __dead2;
-int swapctx(struct pcb *old, struct pcb *new);
+int swapctx(struct pcb *old, struct pcb *new) __returns_twice;
void ia32_restorectx(struct pcb *);
-void ia32_savectx(struct pcb *);
+void ia32_savectx(struct pcb *) __returns_twice;
#endif
OpenPOWER on IntegriCloud