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

TOMOYO Linux Cross Reference
Linux/arch/arm/mm/l2c-l2x0-resume.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/l2c-l2x0-resume.S (Architecture i386) and /arch/sparc64/mm/l2c-l2x0-resume.S (Architecture sparc64)


  1 /* SPDX-License-Identifier: GPL-2.0 */            
  2 /*                                                
  3  * L2C-310 early resume code.  This can be use    
  4  * the settings of their L2 cache controller b    
  5  * processor state.                               
  6  *                                                
  7  * This code can only be used to if you are ru    
  8  */                                               
  9 #include <linux/linkage.h>                        
 10 #include <asm/assembler.h>                        
 11 #include <asm/hardware/cache-l2x0.h>              
 12                                                   
 13         .text                                     
 14                                                   
 15 ENTRY(l2c310_early_resume)                        
 16         adr     r0, 1f                            
 17         ldr     r2, [r0]                          
 18         add     r0, r2, r0                        
 19                                                   
 20         ldmia   r0, {r1, r2, r3, r4, r5, r6, r    
 21         @ r1 = phys address of L2C-310 control    
 22         @ r2 = aux_ctrl                           
 23         @ r3 = tag_latency                        
 24         @ r4 = data_latency                       
 25         @ r5 = filter_start                       
 26         @ r6 = filter_end                         
 27         @ r7 = prefetch_ctrl                      
 28         @ r8 = pwr_ctrl                           
 29                                                   
 30         @ Check that the address has been init    
 31         teq     r1, #0                            
 32         reteq   lr                                
 33                                                   
 34         @ The prefetch and power control regis    
 35         @ and can be written whether or not th    
 36         ldr     r0, [r1, #L2X0_CACHE_ID]          
 37         and     r0, r0, #L2X0_CACHE_ID_RTL_MAS    
 38         cmp     r0, #L310_CACHE_ID_RTL_R2P0       
 39         strcs   r7, [r1, #L310_PREFETCH_CTRL]     
 40         cmp     r0, #L310_CACHE_ID_RTL_R3P0       
 41         strcs   r8, [r1, #L310_POWER_CTRL]        
 42                                                   
 43         @ Don't setup the L2 cache if it is al    
 44         ldr     r0, [r1, #L2X0_CTRL]              
 45         tst     r0, #L2X0_CTRL_EN                 
 46         retne   lr                                
 47                                                   
 48         str     r3, [r1, #L310_TAG_LATENCY_CTR    
 49         str     r4, [r1, #L310_DATA_LATENCY_CT    
 50         str     r6, [r1, #L310_ADDR_FILTER_END    
 51         str     r5, [r1, #L310_ADDR_FILTER_STA    
 52                                                   
 53         str     r2, [r1, #L2X0_AUX_CTRL]          
 54         mov     r9, #L2X0_CTRL_EN                 
 55         str     r9, [r1, #L2X0_CTRL]              
 56         ret     lr                                
 57 ENDPROC(l2c310_early_resume)                      
 58                                                   
 59         .align                                    
 60 1:      .long   l2x0_saved_regs - .               
                                                      

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