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

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/ia32.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/x86/include/asm/ia32.h (Architecture alpha) and /arch/m68k/include/asm-m68k/ia32.h (Architecture m68k)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ASM_X86_IA32_H                           
  3 #define _ASM_X86_IA32_H                           
  4                                                   
  5 #ifdef CONFIG_IA32_EMULATION                      
  6                                                   
  7 #include <linux/compat.h>                         
  8                                                   
  9 /*                                                
 10  * 32 bit structures for IA32 support.            
 11  */                                               
 12                                                   
 13 #include <uapi/asm/sigcontext.h>                  
 14                                                   
 15 /* signal.h */                                    
 16                                                   
 17 struct ucontext_ia32 {                            
 18         unsigned int      uc_flags;               
 19         unsigned int      uc_link;                
 20         compat_stack_t    uc_stack;               
 21         struct sigcontext_32 uc_mcontext;         
 22         compat_sigset_t   uc_sigmask;   /* mas    
 23 };                                                
 24                                                   
 25 /* This matches struct stat64 in glibc2.2, hen    
 26  * insane amounts of padding around dev_t's.      
 27  */                                               
 28 struct stat64 {                                   
 29         unsigned long long      st_dev;           
 30         unsigned char           __pad0[4];        
 31                                                   
 32 #define STAT64_HAS_BROKEN_ST_INO        1         
 33         unsigned int            __st_ino;         
 34                                                   
 35         unsigned int            st_mode;          
 36         unsigned int            st_nlink;         
 37                                                   
 38         unsigned int            st_uid;           
 39         unsigned int            st_gid;           
 40                                                   
 41         unsigned long long      st_rdev;          
 42         unsigned char           __pad3[4];        
 43                                                   
 44         long long               st_size;          
 45         unsigned int            st_blksize;       
 46                                                   
 47         long long               st_blocks;/* N    
 48                                                   
 49         unsigned                st_atime;         
 50         unsigned                st_atime_nsec;    
 51         unsigned                st_mtime;         
 52         unsigned                st_mtime_nsec;    
 53         unsigned                st_ctime;         
 54         unsigned                st_ctime_nsec;    
 55                                                   
 56         unsigned long long      st_ino;           
 57 } __attribute__((packed));                        
 58                                                   
 59 extern bool __ia32_enabled;                       
 60                                                   
 61 static __always_inline bool ia32_enabled(void)    
 62 {                                                 
 63         return __ia32_enabled;                    
 64 }                                                 
 65                                                   
 66 static inline void ia32_disable(void)             
 67 {                                                 
 68         __ia32_enabled = false;                   
 69 }                                                 
 70                                                   
 71 #else /* !CONFIG_IA32_EMULATION */                
 72                                                   
 73 static __always_inline bool ia32_enabled(void)    
 74 {                                                 
 75         return IS_ENABLED(CONFIG_X86_32);         
 76 }                                                 
 77                                                   
 78 static inline void ia32_disable(void) {}          
 79                                                   
 80 #endif                                            
 81                                                   
 82 static inline bool ia32_enabled_verbose(void)     
 83 {                                                 
 84         bool enabled = ia32_enabled();            
 85                                                   
 86         if (IS_ENABLED(CONFIG_IA32_EMULATION)     
 87                 pr_notice_once("32-bit emulati    
 88                                                   
 89         return enabled;                           
 90 }                                                 
 91                                                   
 92 #endif /* _ASM_X86_IA32_H */                      
 93                                                   

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