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

TOMOYO Linux Cross Reference
Linux/arch/parisc/kernel/toc_asm.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/parisc/kernel/toc_asm.S (Architecture sparc64) and /arch/alpha/kernel/toc_asm.S (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *    
  2                                                   
  3 /* TOC (Transfer of Control) handler. */          
  4                                                   
  5         .level 1.1                                
  6                                                   
  7 #include <asm/assembly.h>                         
  8 #include <linux/threads.h>                        
  9 #include <linux/linkage.h>                        
 10                                                   
 11         .text                                     
 12         .import toc_intr,code                     
 13         .import toc_stack,data                    
 14         .align 16                                 
 15 ENTRY_CFI(toc_handler)                            
 16         load32  PA(toc_stack),%sp                 
 17                                                   
 18 #ifdef CONFIG_SMP                                 
 19         /* get per-cpu toc_stack address. */      
 20         mfctl   %cr30, %r1                        
 21         tophys  %r1,%r2                 /* tas    
 22         LDREG   TASK_TI_CPU(%r2),%r4    /* cpu    
 23         load32  PA(__per_cpu_offset),%r1          
 24         LDREGX  %r4(%r1),%r4                      
 25         add     %r4,%sp,%sp                       
 26 #endif                                            
 27                                                   
 28         /*                                        
 29          * setup pt_regs on stack and save the    
 30          * floating point registers. PIM_TOC d    
 31          * save fp registers, so we're doing i    
 32          */                                       
 33         copy    %sp,%arg0                         
 34         ldo     PT_SZ_ALGN(%sp), %sp              
 35                                                   
 36         /* clear pt_regs */                       
 37         copy    %arg0,%r1                         
 38 0:      cmpb,<<,n %r1,%sp,0b                      
 39         stw,ma  %r0,4(%r1)                        
 40                                                   
 41         ldo     PT_FR0(%arg0),%r25                
 42         save_fp %r25                              
 43                                                   
 44         /* go virtual */                          
 45         load32  PA(swapper_pg_dir),%r4            
 46         mtctl   %r4,%cr24                         
 47         mtctl   %r4,%cr25                         
 48                                                   
 49         /* Clear sr4-sr7 */                       
 50         mtsp    %r0, %sr4                         
 51         mtsp    %r0, %sr5                         
 52         mtsp    %r0, %sr6                         
 53         mtsp    %r0, %sr7                         
 54                                                   
 55         tovirt_r1 %sp                             
 56         tovirt_r1 %arg0                           
 57         virt_map                                  
 58                                                   
 59         loadgp                                    
 60                                                   
 61 #ifdef CONFIG_64BIT                               
 62         ldo     -16(%sp),%r29                     
 63 #endif                                            
 64         load32  toc_intr,%r1                      
 65         be      0(%sr7,%r1)                       
 66         nop                                       
 67 ENDPROC_CFI(toc_handler)                          
 68                                                   
 69         /*                                        
 70          * keep this checksum here, as it is p    
 71          * spanned by toc_handler_size (all wo    
 72          * added in PDC and the sum must equal    
 73          */                                       
 74 SYM_DATA(toc_handler_csum, .long 0)               
 75 SYM_DATA(toc_handler_size, .long . - toc_handl    
                                                      

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