rt_sigframe.h 706 B

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