~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/parisc/kernel/signal32.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/parisc/kernel/signal32.h (Version linux-6.11-rc3) and /arch/i386/kernel/signal32.h (Version policy-sample)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  *    Copyright (C) 2001 Matthew Wilcox <willy    
  4  *    Copyright (C) 2003 Carlos O'Donell <carl    
  5  */                                               
  6 #ifndef _PARISC64_KERNEL_SIGNAL32_H               
  7 #define _PARISC64_KERNEL_SIGNAL32_H               
  8                                                   
  9 #include <linux/compat.h>                         
 10                                                   
 11 /* 32-bit ucontext as seen from an 64-bit kern    
 12 struct compat_ucontext {                          
 13         compat_uint_t uc_flags;                   
 14         compat_uptr_t uc_link;                    
 15         compat_stack_t uc_stack;        /* str    
 16         /* FIXME: Pad out to get uc_mcontext t    
 17         compat_uint_t pad[1];                     
 18         struct compat_sigcontext uc_mcontext;     
 19         compat_sigset_t uc_sigmask;     /* mas    
 20 };                                                
 21                                                   
 22 /* ELF32 signal handling */                       
 23                                                   
 24 /* In a deft move of uber-hackery, we decide t    
 25  * 64-bit registers in a non-portable, non-ABI    
 26  * Userspace can read the hidden structure if     
 27  * guaranteed to be in the same place. In fact    
 28  * ucontext_t structure may push the hidden re    
 29  */                                               
 30 struct compat_regfile {                           
 31         /* Upper half of all the 64-bit regist    
 32            on a copy to a 32-bit userspace */     
 33         compat_int_t rf_gr[32];                   
 34         compat_int_t rf_iasq[2];                  
 35         compat_int_t rf_iaoq[2];                  
 36         compat_int_t rf_sar;                      
 37 };                                                
 38                                                   
 39 struct compat_rt_sigframe {                       
 40         unsigned int tramp[2]; /* holds origin    
 41         compat_siginfo_t info;                    
 42         struct compat_ucontext uc;                
 43         /* Hidden location of truncated regist    
 44         struct compat_regfile regs;               
 45 };                                                
 46                                                   
 47 /*                                                
 48  * The 32-bit ABI wants at least 48 bytes for     
 49  * 16 bytes for arg0-arg3, and 32 bytes for ma    
 50  * which Linux/parisc uses is sp-20 for the sa    
 51  * Then, the stack pointer must be rounded to     
 52  */                                               
 53 #define SIGFRAME32              64                
 54 #define FUNCTIONCALLFRAME32     48                
 55 #define PARISC_RT_SIGFRAME_SIZE32 (((sizeof(st    
 56                                                   
 57 long restore_sigcontext32(struct compat_sigcon    
 58                 struct compat_regfile __user *    
 59                 struct pt_regs *regs);            
 60 long setup_sigcontext32(struct compat_sigconte    
 61                 struct compat_regfile __user *    
 62                 struct pt_regs *regs, int in_s    
 63                                                   
 64 #endif                                            
 65                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php