patch-2.4.23 linux-2.4.23/include/asm-ppc/ucontext.h
Next file: linux-2.4.23/include/asm-ppc/unistd.h
Previous file: linux-2.4.23/include/asm-ppc/uaccess.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/asm-ppc/ucontext.h
- Orig date:
2003-06-13 07:51:38.000000000 -0700
diff -urN linux-2.4.22/include/asm-ppc/ucontext.h linux-2.4.23/include/asm-ppc/ucontext.h
@@ -1,14 +1,27 @@
#ifndef _ASMPPC_UCONTEXT_H
#define _ASMPPC_UCONTEXT_H
-/* Copied from i386. */
+#include <asm/elf.h>
+#include <asm/signal.h>
+
+struct mcontext {
+ elf_gregset_t mc_gregs;
+ elf_fpregset_t mc_fregs;
+ unsigned long mc_pad[2];
+ elf_vrregset_t mc_vregs __attribute__((__aligned__(16)));
+};
struct ucontext {
- unsigned long uc_flags;
- struct ucontext *uc_link;
- stack_t uc_stack;
- struct sigcontext_struct uc_mcontext;
- sigset_t uc_sigmask; /* mask last for extensibility */
+ unsigned long uc_flags;
+ struct ucontext *uc_link;
+ stack_t uc_stack;
+ int uc_pad[7];
+ struct mcontext *uc_regs; /* points to uc_mcontext field */
+ sigset_t uc_sigmask;
+ /* glibc has 1024-bit signal masks, ours are 64-bit */
+ int uc_maskext[30];
+ int uc_pad2[3];
+ struct mcontext uc_mcontext;
};
#endif /* !_ASMPPC_UCONTEXT_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)