patch-2.4.20 linux-2.4.20/include/asm-parisc/rt_sigframe.h

Next file: linux-2.4.20/include/asm-parisc/scatterlist.h
Previous file: linux-2.4.20/include/asm-parisc/rmap.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/include/asm-parisc/rt_sigframe.h linux-2.4.20/include/asm-parisc/rt_sigframe.h
@@ -0,0 +1,19 @@
+#ifndef _ASM_PARISC_RT_SIGFRAME_H
+#define _ASM_PARISC_RT_SIGFRAME_H
+
+struct rt_sigframe {
+	unsigned int tramp[4];
+	struct siginfo info;
+	struct ucontext uc;
+};
+
+/*
+ * The 32-bit ABI wants at least 48 bytes for a function call frame:
+ * 16 bytes for arg0-arg3, and 32 bytes for magic (the only part of
+ * which Linux/parisc uses is sp-20 for the saved return pointer...)
+ * Then, the stack pointer must be rounded to a cache line (64 bytes).
+ */
+#define PARISC_RT_SIGFRAME_SIZE					\
+	(((sizeof(struct rt_sigframe) + 48) + 63) & -64)
+
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)