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

TOMOYO Linux Cross Reference
Linux/arch/arm/mm/proc-arm720.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/proc-arm720.S (Version linux-6.12-rc7) and /arch/m68k/mm/proc-arm720.S (Version linux-6.2.16)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *    
  2 /*                                                
  3  *  linux/arch/arm/mm/proc-arm720.S: MMU funct    
  4  *                                                
  5  *  Copyright (C) 2000 Steve Hill (sjhill@cotw    
  6  *                     Rob Scott (rscott@mtrob    
  7  *  Copyright (C) 2000 ARM Limited, Deep Blue     
  8  *  hacked for non-paged-MM by Hyok S. Choi, 2    
  9  *                                                
 10  * These are the low level assembler for perfo    
 11  * functions on the ARM720T.  The ARM720T has     
 12  * cache, so we don't need to clean it.           
 13  *                                                
 14  *  Changelog:                                    
 15  *   05-09-2000 SJH     Created by moving 720     
 16  *                      out of 'proc-arm6,7.S'    
 17  *   07-25-2000 SJH     Added idle function.      
 18  *   08-25-2000 DBS     Updated for integratio    
 19  *   04-20-2004 HSC     modified for non-paged    
 20  */                                               
 21 #include <linux/linkage.h>                        
 22 #include <linux/init.h>                           
 23 #include <linux/cfi_types.h>                      
 24 #include <linux/pgtable.h>                        
 25 #include <asm/assembler.h>                        
 26 #include <asm/asm-offsets.h>                      
 27 #include <asm/hwcap.h>                            
 28 #include <asm/pgtable-hwdef.h>                    
 29 #include <asm/ptrace.h>                           
 30                                                   
 31 #include "proc-macros.S"                          
 32                                                   
 33 /*                                                
 34  * Function: arm720_proc_init (void)              
 35  *         : arm720_proc_fin (void)               
 36  *                                                
 37  * Notes   : This processor does not require t    
 38  */                                               
 39 SYM_TYPED_FUNC_START(cpu_arm720_dcache_clean_a    
 40                 ret     lr                        
 41 SYM_FUNC_END(cpu_arm720_dcache_clean_area)        
 42                                                   
 43 SYM_TYPED_FUNC_START(cpu_arm720_proc_init)        
 44                 ret     lr                        
 45 SYM_FUNC_END(cpu_arm720_proc_init)                
 46                                                   
 47 SYM_TYPED_FUNC_START(cpu_arm720_proc_fin)         
 48                 mrc     p15, 0, r0, c1, c0, 0     
 49                 bic     r0, r0, #0x1000           
 50                 bic     r0, r0, #0x000e           
 51                 mcr     p15, 0, r0, c1, c0, 0     
 52                 ret     lr                        
 53 SYM_FUNC_END(cpu_arm720_proc_fin)                 
 54                                                   
 55 /*                                                
 56  * Function: arm720_proc_do_idle(void)            
 57  * Params  : r0 = unused                          
 58  * Purpose : put the processor in proper idle     
 59  */                                               
 60 SYM_TYPED_FUNC_START(cpu_arm720_do_idle)          
 61                 ret     lr                        
 62 SYM_FUNC_END(cpu_arm720_do_idle)                  
 63                                                   
 64 /*                                                
 65  * Function: arm720_switch_mm(unsigned long pg    
 66  * Params  : pgd_phys   Physical address of pa    
 67  * Purpose : Perform a task switch, saving the    
 68  *           the new.                             
 69  */                                               
 70 SYM_TYPED_FUNC_START(cpu_arm720_switch_mm)        
 71 #ifdef CONFIG_MMU                                 
 72                 mov     r1, #0                    
 73                 mcr     p15, 0, r1, c7, c7, 0     
 74                 mcr     p15, 0, r0, c2, c0, 0     
 75                 mcr     p15, 0, r1, c8, c7, 0     
 76 #endif                                            
 77                 ret     lr                        
 78 SYM_FUNC_END(cpu_arm720_switch_mm)                
 79                                                   
 80 /*                                                
 81  * Function: arm720_set_pte_ext(pte_t *ptep, p    
 82  * Params  : r0 = Address to set                  
 83  *         : r1 = value to set                    
 84  * Purpose : Set a PTE and flush it out of any    
 85  */                                               
 86         .align  5                                 
 87 SYM_TYPED_FUNC_START(cpu_arm720_set_pte_ext)      
 88 #ifdef CONFIG_MMU                                 
 89         armv3_set_pte_ext wc_disable=0            
 90 #endif                                            
 91         ret     lr                                
 92 SYM_FUNC_END(cpu_arm720_set_pte_ext)              
 93                                                   
 94 /*                                                
 95  * Function: arm720_reset                         
 96  * Params  : r0 = address to jump to              
 97  * Notes   : This sets up everything for a res    
 98  */                                               
 99                 .pushsection    .idmap.text, "    
100 SYM_TYPED_FUNC_START(cpu_arm720_reset)            
101                 mov     ip, #0                    
102                 mcr     p15, 0, ip, c7, c7, 0     
103 #ifdef CONFIG_MMU                                 
104                 mcr     p15, 0, ip, c8, c7, 0     
105 #endif                                            
106                 mrc     p15, 0, ip, c1, c0, 0     
107                 bic     ip, ip, #0x000f           
108                 bic     ip, ip, #0x2100           
109                 mcr     p15, 0, ip, c1, c0, 0     
110                 ret     r0                        
111 SYM_FUNC_END(cpu_arm720_reset)                    
112                 .popsection                       
113                                                   
114         .type   __arm710_setup, #function         
115 __arm710_setup:                                   
116         mov     r0, #0                            
117         mcr     p15, 0, r0, c7, c7, 0             
118 #ifdef CONFIG_MMU                                 
119         mcr     p15, 0, r0, c8, c7, 0             
120 #endif                                            
121         mrc     p15, 0, r0, c1, c0                
122         ldr     r5, arm710_cr1_clear              
123         bic     r0, r0, r5                        
124         ldr     r5, arm710_cr1_set                
125         orr     r0, r0, r5                        
126         ret     lr                                
127         .size   __arm710_setup, . - __arm710_s    
128                                                   
129         /*                                        
130          *  R                                     
131          * .RVI ZFRS BLDP WCAM                    
132          * .... 0001 ..11 1101                    
133          *                                        
134          */                                       
135         .type   arm710_cr1_clear, #object         
136         .type   arm710_cr1_set, #object           
137 arm710_cr1_clear:                                 
138         .word   0x0f3f                            
139 arm710_cr1_set:                                   
140         .word   0x013d                            
141                                                   
142         .type   __arm720_setup, #function         
143 __arm720_setup:                                   
144         mov     r0, #0                            
145         mcr     p15, 0, r0, c7, c7, 0             
146 #ifdef CONFIG_MMU                                 
147         mcr     p15, 0, r0, c8, c7, 0             
148 #endif                                            
149         adr     r5, arm720_crval                  
150         ldmia   r5, {r5, r6}                      
151         mrc     p15, 0, r0, c1, c0                
152         bic     r0, r0, r5                        
153         orr     r0, r0, r6                        
154         ret     lr                                
155         .size   __arm720_setup, . - __arm720_s    
156                                                   
157         /*                                        
158          *  R                                     
159          * .RVI ZFRS BLDP WCAM                    
160          * ..1. 1001 ..11 1101                    
161          *                                        
162          */                                       
163         .type   arm720_crval, #object             
164 arm720_crval:                                     
165         crval   clear=0x00002f3f, mmuset=0x000    
166                                                   
167                 __INITDATA                        
168         @ define struct processor (see <asm/pr    
169         define_processor_functions arm720, dab    
170                                                   
171                 .section ".rodata"                
172                                                   
173         string  cpu_arch_name, "armv4t"           
174         string  cpu_elf_name, "v4"                
175         string  cpu_arm710_name, "ARM710T"        
176         string  cpu_arm720_name, "ARM720T"        
177                                                   
178                 .align                            
179                                                   
180 /*                                                
181  * See <asm/procinfo.h> for a definition of th    
182  */                                               
183                                                   
184                 .section ".proc.info.init", "a    
185                                                   
186 .macro arm720_proc_info name:req, cpu_val:req,    
187                 .type   __\name\()_proc_info,#    
188 __\name\()_proc_info:                             
189                 .long   \cpu_val                  
190                 .long   \cpu_mask                 
191                 .long   PMD_TYPE_SECT | \         
192                         PMD_SECT_BUFFERABLE |     
193                         PMD_SECT_CACHEABLE | \    
194                         PMD_BIT4 | \              
195                         PMD_SECT_AP_WRITE | \     
196                         PMD_SECT_AP_READ          
197                 .long   PMD_TYPE_SECT | \         
198                         PMD_BIT4 | \              
199                         PMD_SECT_AP_WRITE | \     
200                         PMD_SECT_AP_READ          
201                 initfn  \cpu_flush, __\name\()    
202                 .long   cpu_arch_name             
203                 .long   cpu_elf_name              
204                 .long   HWCAP_SWP | HWCAP_HALF    
205                 .long   \cpu_name                 
206                 .long   arm720_processor_funct    
207                 .long   v4_tlb_fns                
208                 .long   v4wt_user_fns             
209                 .long   v4_cache_fns              
210                 .size   __\name\()_proc_info,     
211 .endm                                             
212                                                   
213         arm720_proc_info arm710, 0x41807100, 0    
214         arm720_proc_info arm720, 0x41807200, 0    
                                                      

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