summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include
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/powerpc/include
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/powerpc/include')
-rw-r--r--sys/powerpc/include/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/cpu.h b/sys/powerpc/include/cpu.h
index 73b1f50..66d21eb 100644
--- a/sys/powerpc/include/cpu.h
+++ b/sys/powerpc/include/cpu.h
@@ -99,6 +99,6 @@ void fork_trampoline(void);
void swi_vm(void *);
/* XXX the following should not be here. */
-void savectx(struct pcb *);
+void savectx(struct pcb *) __returns_twice;
#endif /* _MACHINE_CPU_H_ */
OpenPOWER on IntegriCloud