rt_sigframe.h 771 B

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_PARISC_RT_SIGFRAME_H
  2. #define _ASM_PARISC_RT_SIGFRAME_H
  3. #ifdef CONFIG_COMPAT
  4. #include <asm/compat_rt_sigframe.h>
  5. #endif
  6. #define SIGRETURN_TRAMP 4
  7. #define SIGRESTARTBLOCK_TRAMP 5
  8. #define TRAMP_SIZE (SIGRETURN_TRAMP + SIGRESTARTBLOCK_TRAMP)
  9. struct rt_sigframe {
  10. /* XXX: Must match trampoline size in arch/parisc/kernel/signal.c
  11. Secondary to that it must protect the ERESTART_RESTARTBLOCK
  12. trampoline we left on the stack (we were bad and didn't
  13. change sp so we could run really fast.) */
  14. unsigned int tramp[TRAMP_SIZE];
  15. struct siginfo info;
  16. struct ucontext uc;
  17. };
  18. #define SIGFRAME 128
  19. #define FUNCTIONCALLFRAME 96
  20. #define PARISC_RT_SIGFRAME_SIZE \
  21. (((sizeof(struct rt_sigframe) + FUNCTIONCALLFRAME) + SIGFRAME) & -SIGFRAME)
  22. #endif