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

TOMOYO Linux Cross Reference
Linux/arch/arm/mm/cache-v4.S

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/mm/cache-v4.S (Version linux-6.12-rc7) and /arch/m68k/mm/cache-v4.S (Version linux-5.10.229)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  *  linux/arch/arm/mm/cache-v4.S                  
  4  *                                                
  5  *  Copyright (C) 1997-2002 Russell king          
  6  */                                               
  7 #include <linux/linkage.h>                        
  8 #include <linux/init.h>                           
  9 #include <linux/cfi_types.h>                      
 10 #include <asm/assembler.h>                        
 11 #include <asm/page.h>                             
 12 #include "proc-macros.S"                          
 13                                                   
 14 /*                                                
 15  *      flush_icache_all()                        
 16  *                                                
 17  *      Unconditionally clean and invalidate t    
 18  */                                               
 19 SYM_TYPED_FUNC_START(v4_flush_icache_all)         
 20         ret     lr                                
 21 SYM_FUNC_END(v4_flush_icache_all)                 
 22                                                   
 23 /*                                                
 24  *      flush_user_cache_all()                    
 25  *                                                
 26  *      Invalidate all cache entries in a part    
 27  *      space.                                    
 28  *                                                
 29  *      - mm    - mm_struct describing address    
 30  */                                               
 31 SYM_FUNC_ALIAS(v4_flush_user_cache_all, v4_flu    
 32                                                   
 33 /*                                                
 34  *      flush_kern_cache_all()                    
 35  *                                                
 36  *      Clean and invalidate the entire cache.    
 37  */                                               
 38 SYM_TYPED_FUNC_START(v4_flush_kern_cache_all)     
 39 #ifdef CONFIG_CPU_CP15                            
 40         mov     r0, #0                            
 41         mcr     p15, 0, r0, c7, c7, 0             
 42         ret     lr                                
 43 #else                                             
 44         ret     lr                                
 45 #endif                                            
 46 SYM_FUNC_END(v4_flush_kern_cache_all)             
 47                                                   
 48 /*                                                
 49  *      flush_user_cache_range(start, end, fla    
 50  *                                                
 51  *      Invalidate a range of cache entries in    
 52  *      address space.                            
 53  *                                                
 54  *      - start - start address (may not be al    
 55  *      - end   - end address (exclusive, may     
 56  *      - flags - vma_area_struct flags descri    
 57  */                                               
 58 SYM_TYPED_FUNC_START(v4_flush_user_cache_range    
 59 #ifdef CONFIG_CPU_CP15                            
 60         mov     ip, #0                            
 61         mcr     p15, 0, ip, c7, c7, 0             
 62         ret     lr                                
 63 #else                                             
 64         ret     lr                                
 65 #endif                                            
 66 SYM_FUNC_END(v4_flush_user_cache_range)           
 67                                                   
 68 /*                                                
 69  *      coherent_kern_range(start, end)           
 70  *                                                
 71  *      Ensure coherency between the Icache an    
 72  *      region described by start.  If you hav    
 73  *      Harvard caches, you need to implement     
 74  *                                                
 75  *      - start  - virtual start address          
 76  *      - end    - virtual end address            
 77  */                                               
 78 SYM_TYPED_FUNC_START(v4_coherent_kern_range)      
 79         ret     lr                                
 80 SYM_FUNC_END(v4_coherent_kern_range)              
 81                                                   
 82 /*                                                
 83  *      coherent_user_range(start, end)           
 84  *                                                
 85  *      Ensure coherency between the Icache an    
 86  *      region described by start.  If you hav    
 87  *      Harvard caches, you need to implement     
 88  *                                                
 89  *      - start  - virtual start address          
 90  *      - end    - virtual end address            
 91  */                                               
 92 SYM_TYPED_FUNC_START(v4_coherent_user_range)      
 93         mov     r0, #0                            
 94         ret     lr                                
 95 SYM_FUNC_END(v4_coherent_user_range)              
 96                                                   
 97 /*                                                
 98  *      flush_kern_dcache_area(void *addr, siz    
 99  *                                                
100  *      Ensure no D cache aliasing occurs, eit    
101  *      the I cache                               
102  *                                                
103  *      - addr  - kernel address                  
104  *      - size  - region size                     
105  */                                               
106 SYM_TYPED_FUNC_START(v4_flush_kern_dcache_area    
107 #ifdef CONFIG_CFI_CLANG /* Fallthrough if !CFI    
108         b       v4_dma_flush_range                
109 #endif                                            
110 SYM_FUNC_END(v4_flush_kern_dcache_area)           
111                                                   
112 /*                                                
113  *      dma_flush_range(start, end)               
114  *                                                
115  *      Clean and invalidate the specified vir    
116  *                                                
117  *      - start  - virtual start address          
118  *      - end    - virtual end address            
119  */                                               
120 SYM_TYPED_FUNC_START(v4_dma_flush_range)          
121 #ifdef CONFIG_CPU_CP15                            
122         mov     r0, #0                            
123         mcr     p15, 0, r0, c7, c7, 0             
124 #endif                                            
125         ret     lr                                
126 SYM_FUNC_END(v4_dma_flush_range)                  
127                                                   
128 /*                                                
129  *      dma_unmap_area(start, size, dir)          
130  *      - start - kernel virtual start address    
131  *      - size  - size of region                  
132  *      - dir   - DMA direction                   
133  */                                               
134 SYM_TYPED_FUNC_START(v4_dma_unmap_area)           
135         teq     r2, #DMA_TO_DEVICE                
136         bne     v4_dma_flush_range                
137         ret     lr                                
138 SYM_FUNC_END(v4_dma_unmap_area)                   
139                                                   
140 /*                                                
141  *      dma_map_area(start, size, dir)            
142  *      - start - kernel virtual start address    
143  *      - size  - size of region                  
144  *      - dir   - DMA direction                   
145  */                                               
146 SYM_TYPED_FUNC_START(v4_dma_map_area)             
147         ret     lr                                
148 SYM_FUNC_END(v4_dma_map_area)                     
                                                      

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