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

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/ucontext.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/arm/include/asm/ucontext.h (Architecture sparc64) and /arch/alpha/include/asm-alpha/ucontext.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ASMARM_UCONTEXT_H                        
  3 #define _ASMARM_UCONTEXT_H                        
  4                                                   
  5 #include <asm/fpstate.h>                          
  6 #include <asm/user.h>                             
  7                                                   
  8 /*                                                
  9  * struct sigcontext only has room for the bas    
 10  * ucontext now has room for all registers whi    
 11  * restored.  Coprocessor registers are stored    
 12  * coprocessor's saved state should start with    
 13  * number, followed by a 32-bit word giving th    
 14  * uc_regspace may be expanded if necessary, a    
 15  * coordination with glibc.                       
 16  */                                               
 17                                                   
 18 struct ucontext {                                 
 19         unsigned long     uc_flags;               
 20         struct ucontext  *uc_link;                
 21         stack_t           uc_stack;               
 22         struct sigcontext uc_mcontext;            
 23         sigset_t          uc_sigmask;             
 24         /* Allow for uc_sigmask growth.  Glibc    
 25         int               __unused[32 - (sizeo    
 26         /* Last for extensibility.  Eight byte    
 27            coprocessors require eight byte ali    
 28         unsigned long     uc_regspace[128] __a    
 29 };                                                
 30                                                   
 31 #ifdef __KERNEL__                                 
 32                                                   
 33 /*                                                
 34  * Coprocessor save state.  The magic values a    
 35  * coprocessor's layouts are part of the users    
 36  * these should be a multiple of eight bytes a    
 37  * bytes, to prevent unpredictable padding in     
 38  */                                               
 39                                                   
 40 /*                                                
 41  * Dummy padding block: if this magic is encou    
 42  * be skipped using the corresponding size fie    
 43  */                                               
 44 #define DUMMY_MAGIC             0xb0d9ed01        
 45                                                   
 46 #ifdef CONFIG_IWMMXT                              
 47 /* iwmmxt_area is 0x98 bytes long, preceded by    
 48 #define IWMMXT_MAGIC            0x12ef842a        
 49 #define IWMMXT_STORAGE_SIZE     (IWMMXT_SIZE +    
 50                                                   
 51 struct iwmmxt_sigframe {                          
 52         unsigned long   magic;                    
 53         unsigned long   size;                     
 54         struct iwmmxt_struct storage;             
 55 } __attribute__((__aligned__(8)));                
 56 #endif /* CONFIG_IWMMXT */                        
 57                                                   
 58 #ifdef CONFIG_VFP                                 
 59 #define VFP_MAGIC               0x56465001        
 60                                                   
 61 struct vfp_sigframe                               
 62 {                                                 
 63         unsigned long           magic;            
 64         unsigned long           size;             
 65         struct user_vfp         ufp;              
 66         struct user_vfp_exc     ufp_exc;          
 67 } __attribute__((__aligned__(8)));                
 68                                                   
 69 /*                                                
 70  *  8 byte for magic and size, 264 byte for uf    
 71  *  4 bytes padding.                              
 72  */                                               
 73 #define VFP_STORAGE_SIZE        sizeof(struct     
 74                                                   
 75 #endif /* CONFIG_VFP */                           
 76                                                   
 77 /*                                                
 78  * Auxiliary signal frame.  This saves stuff l    
 79  * The layout of this structure is not part of    
 80  * because the config options aren't.  uc_regs    
 81  * one of these.                                  
 82  */                                               
 83 struct aux_sigframe {                             
 84 #ifdef CONFIG_IWMMXT                              
 85         struct iwmmxt_sigframe  iwmmxt;           
 86 #endif                                            
 87 #ifdef CONFIG_VFP                                 
 88         struct vfp_sigframe     vfp;              
 89 #endif                                            
 90         /* Something that isn't a valid magic     
 91         unsigned long           end_magic;        
 92 } __attribute__((__aligned__(8)));                
 93                                                   
 94 #endif                                            
 95                                                   
 96 #endif /* !_ASMARM_UCONTEXT_H */                  
 97                                                   

~ [ 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