home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-parisc / rt_sigframe.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  706 b   |  24 lines

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