rt_sigframe.h 745 B

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