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

TOMOYO Linux Cross Reference
Linux/arch/mips/kernel/linux32.c

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/mips/kernel/linux32.c (Version linux-6.12-rc7) and /arch/sparc64/kernel/linux32.c (Version linux-5.8.18)


  1 // SPDX-License-Identifier: GPL-2.0                 1 
  2 /*                                                
  3  * Conversion between 32-bit and 64-bit native    
  4  *                                                
  5  * Copyright (C) 2000 Silicon Graphics, Inc.      
  6  * Written by Ulf Carlsson (ulfc@engr.sgi.com)    
  7  */                                               
  8 #include <linux/compiler.h>                       
  9 #include <linux/mm.h>                             
 10 #include <linux/errno.h>                          
 11 #include <linux/file.h>                           
 12 #include <linux/highuid.h>                        
 13 #include <linux/resource.h>                       
 14 #include <linux/highmem.h>                        
 15 #include <linux/time.h>                           
 16 #include <linux/times.h>                          
 17 #include <linux/poll.h>                           
 18 #include <linux/skbuff.h>                         
 19 #include <linux/filter.h>                         
 20 #include <linux/shm.h>                            
 21 #include <linux/sem.h>                            
 22 #include <linux/msg.h>                            
 23 #include <linux/icmpv6.h>                         
 24 #include <linux/syscalls.h>                       
 25 #include <linux/sysctl.h>                         
 26 #include <linux/utime.h>                          
 27 #include <linux/utsname.h>                        
 28 #include <linux/personality.h>                    
 29 #include <linux/dnotify.h>                        
 30 #include <linux/binfmts.h>                        
 31 #include <linux/security.h>                       
 32 #include <linux/compat.h>                         
 33 #include <linux/vfs.h>                            
 34 #include <linux/ipc.h>                            
 35 #include <linux/slab.h>                           
 36                                                   
 37 #include <net/sock.h>                             
 38 #include <net/scm.h>                              
 39                                                   
 40 #include <asm/compat-signal.h>                    
 41 #include <asm/sim.h>                              
 42 #include <linux/uaccess.h>                        
 43 #include <asm/mmu_context.h>                      
 44 #include <asm/mman.h>                             
 45 #include <asm/syscalls.h>                         
 46                                                   
 47 #ifdef __MIPSEB__                                 
 48 #define merge_64(r1, r2) ((((r1) & 0xffffffffU    
 49 #endif                                            
 50 #ifdef __MIPSEL__                                 
 51 #define merge_64(r1, r2) ((((r2) & 0xffffffffU    
 52 #endif                                            
 53                                                   
 54 SYSCALL_DEFINE4(32_truncate64, const char __us    
 55         unsigned long, __dummy, unsigned long,    
 56 {                                                 
 57         return ksys_truncate(path, merge_64(a2    
 58 }                                                 
 59                                                   
 60 SYSCALL_DEFINE4(32_ftruncate64, unsigned long,    
 61         unsigned long, a2, unsigned long, a3)     
 62 {                                                 
 63         return ksys_ftruncate(fd, merge_64(a2,    
 64 }                                                 
 65                                                   
 66 SYSCALL_DEFINE5(32_llseek, unsigned int, fd, u    
 67                 unsigned int, offset_low, loff    
 68                 unsigned int, origin)             
 69 {                                                 
 70         return sys_llseek(fd, offset_high, off    
 71 }                                                 
 72                                                   
 73 /* From the Single Unix Spec: pread & pwrite a    
 74    lseek back to original location.  They fail    
 75    non-seekable files.  */                        
 76                                                   
 77 SYSCALL_DEFINE6(32_pread, unsigned long, fd, c    
 78         unsigned long, unused, unsigned long,     
 79 {                                                 
 80         return ksys_pread64(fd, buf, count, me    
 81 }                                                 
 82                                                   
 83 SYSCALL_DEFINE6(32_pwrite, unsigned int, fd, c    
 84         size_t, count, u32, unused, u64, a4, u    
 85 {                                                 
 86         return ksys_pwrite64(fd, buf, count, m    
 87 }                                                 
 88                                                   
 89 SYSCALL_DEFINE1(32_personality, unsigned long,    
 90 {                                                 
 91         unsigned int p = personality & 0xfffff    
 92         int ret;                                  
 93                                                   
 94         if (personality(current->personality)     
 95             personality(p) == PER_LINUX)          
 96                 p = (p & ~PER_MASK) | PER_LINU    
 97         ret = sys_personality(p);                 
 98         if (ret != -1 && personality(ret) == P    
 99                 ret = (ret & ~PER_MASK) | PER_    
100         return ret;                               
101 }                                                 
102                                                   
103 asmlinkage ssize_t sys32_readahead(int fd, u32    
104                                    size_t coun    
105 {                                                 
106         return ksys_readahead(fd, merge_64(a2,    
107 }                                                 
108                                                   
109 asmlinkage long sys32_sync_file_range(int fd,     
110         unsigned long a2, unsigned long a3,       
111         unsigned long a4, unsigned long a5,       
112         int flags)                                
113 {                                                 
114         return ksys_sync_file_range(fd,           
115                         merge_64(a2, a3), merg    
116                         flags);                   
117 }                                                 
118                                                   
119 asmlinkage long sys32_fadvise64_64(int fd, int    
120         unsigned long a2, unsigned long a3,       
121         unsigned long a4, unsigned long a5,       
122         int flags)                                
123 {                                                 
124         return ksys_fadvise64_64(fd,              
125                         merge_64(a2, a3), merg    
126                         flags);                   
127 }                                                 
128                                                   
129 asmlinkage long sys32_fallocate(int fd, int mo    
130         unsigned offset_a3, unsigned len_a4, u    
131 {                                                 
132         return ksys_fallocate(fd, mode, merge_    
133                               merge_64(len_a4,    
134 }                                                 
135                                                   

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