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

TOMOYO Linux Cross Reference
Linux/arch/powerpc/kernel/misc.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/powerpc/kernel/misc.S (Version linux-6.12-rc7) and /arch/i386/kernel/misc.S (Version linux-4.10.17)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *    
  2 /*                                                
  3  * This file contains miscellaneous low-level     
  4  *    Copyright (C) 1995-1996 Gary Thomas (gdt    
  5  *                                                
  6  * Largely rewritten by Cort Dougan (cort@cs.n    
  7  * and Paul Mackerras.                            
  8  *                                                
  9  * PPC64 updates by Dave Engebretsen (engebret    
 10  *                                                
 11  * setjmp/longjmp code by Paul Mackerras.         
 12  */                                               
 13 #include <linux/export.h>                         
 14 #include <asm/ppc_asm.h>                          
 15 #include <asm/unistd.h>                           
 16 #include <asm/asm-compat.h>                       
 17 #include <asm/asm-offsets.h>                      
 18                                                   
 19         .text                                     
 20                                                   
 21 /*                                                
 22  * Returns (address we are running at) - (addr    
 23  * for use before the text and data are mapped    
 24                                                   
 25  * add_reloc_offset(x) returns x + reloc_offse    
 26  */                                               
 27                                                   
 28 _GLOBAL(reloc_offset)                             
 29         li      r3, 0                             
 30 _GLOBAL(add_reloc_offset)                         
 31         mflr    r0                                
 32         bcl     20,31,$+4                         
 33 1:      mflr    r5                                
 34         PPC_LL  r4,(2f-1b)(r5)                    
 35         subf    r5,r4,r5                          
 36         add     r3,r3,r5                          
 37         mtlr    r0                                
 38         blr                                       
 39 _ASM_NOKPROBE_SYMBOL(reloc_offset)                
 40 _ASM_NOKPROBE_SYMBOL(add_reloc_offset)            
 41                                                   
 42         .align  3                                 
 43 2:      PPC_LONG 1b                               
 44                                                   
 45 _GLOBAL(setjmp)                                   
 46         mflr    r0                                
 47         PPC_STL r0,0(r3)                          
 48         PPC_STL r1,SZL(r3)                        
 49         PPC_STL r2,2*SZL(r3)                      
 50 #ifdef CONFIG_PPC32                               
 51         mfcr    r12                               
 52         stmw    r12, 3*SZL(r3)                    
 53 #else                                             
 54         mfcr    r0                                
 55         PPC_STL r0,3*SZL(r3)                      
 56         PPC_STL r13,4*SZL(r3)                     
 57         PPC_STL r14,5*SZL(r3)                     
 58         PPC_STL r15,6*SZL(r3)                     
 59         PPC_STL r16,7*SZL(r3)                     
 60         PPC_STL r17,8*SZL(r3)                     
 61         PPC_STL r18,9*SZL(r3)                     
 62         PPC_STL r19,10*SZL(r3)                    
 63         PPC_STL r20,11*SZL(r3)                    
 64         PPC_STL r21,12*SZL(r3)                    
 65         PPC_STL r22,13*SZL(r3)                    
 66         PPC_STL r23,14*SZL(r3)                    
 67         PPC_STL r24,15*SZL(r3)                    
 68         PPC_STL r25,16*SZL(r3)                    
 69         PPC_STL r26,17*SZL(r3)                    
 70         PPC_STL r27,18*SZL(r3)                    
 71         PPC_STL r28,19*SZL(r3)                    
 72         PPC_STL r29,20*SZL(r3)                    
 73         PPC_STL r30,21*SZL(r3)                    
 74         PPC_STL r31,22*SZL(r3)                    
 75 #endif                                            
 76         li      r3,0                              
 77         blr                                       
 78                                                   
 79 _GLOBAL(longjmp)                                  
 80 #ifdef CONFIG_PPC32                               
 81         lmw     r12, 3*SZL(r3)                    
 82         mtcrf   0x38, r12                         
 83 #else                                             
 84         PPC_LL  r13,4*SZL(r3)                     
 85         PPC_LL  r14,5*SZL(r3)                     
 86         PPC_LL  r15,6*SZL(r3)                     
 87         PPC_LL  r16,7*SZL(r3)                     
 88         PPC_LL  r17,8*SZL(r3)                     
 89         PPC_LL  r18,9*SZL(r3)                     
 90         PPC_LL  r19,10*SZL(r3)                    
 91         PPC_LL  r20,11*SZL(r3)                    
 92         PPC_LL  r21,12*SZL(r3)                    
 93         PPC_LL  r22,13*SZL(r3)                    
 94         PPC_LL  r23,14*SZL(r3)                    
 95         PPC_LL  r24,15*SZL(r3)                    
 96         PPC_LL  r25,16*SZL(r3)                    
 97         PPC_LL  r26,17*SZL(r3)                    
 98         PPC_LL  r27,18*SZL(r3)                    
 99         PPC_LL  r28,19*SZL(r3)                    
100         PPC_LL  r29,20*SZL(r3)                    
101         PPC_LL  r30,21*SZL(r3)                    
102         PPC_LL  r31,22*SZL(r3)                    
103         PPC_LL  r0,3*SZL(r3)                      
104         mtcrf   0x38,r0                           
105 #endif                                            
106         PPC_LL  r0,0(r3)                          
107         PPC_LL  r1,SZL(r3)                        
108         PPC_LL  r2,2*SZL(r3)                      
109         mtlr    r0                                
110         mr.     r3, r4                            
111         bnelr                                     
112         li      r3, 1                             
113         blr                                       
114                                                   
115 _GLOBAL(current_stack_frame)                      
116         PPC_LL  r3,0(r1)                          
117         blr                                       
118 EXPORT_SYMBOL(current_stack_frame)                
                                                      

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