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

TOMOYO Linux Cross Reference
Linux/arch/arm64/kernel/smccc-call.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/arm64/kernel/smccc-call.S (Version linux-6.12-rc7) and /arch/ppc/kernel/smccc-call.S (Version linux-5.13.19)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  * Copyright (c) 2015, Linaro Limited             
  4  */                                               
  5 #include <linux/linkage.h>                        
  6 #include <linux/arm-smccc.h>                      
  7                                                   
  8 #include <asm/asm-offsets.h>                      
  9 #include <asm/assembler.h>                        
 10                                                   
 11         .macro SMCCC instr                        
 12         \instr  #0                                
 13         ldr     x4, [sp]                          
 14         stp     x0, x1, [x4, #ARM_SMCCC_RES_X0    
 15         stp     x2, x3, [x4, #ARM_SMCCC_RES_X2    
 16         ldr     x4, [sp, #8]                      
 17         cbz     x4, 1f /* no quirk structure *    
 18         ldr     x9, [x4, #ARM_SMCCC_QUIRK_ID_O    
 19         cmp     x9, #ARM_SMCCC_QUIRK_QCOM_A6      
 20         b.ne    1f                                
 21         str     x6, [x4, ARM_SMCCC_QUIRK_STATE    
 22 1:      ret                                       
 23         .endm                                     
 24                                                   
 25 /*                                                
 26  * void arm_smccc_smc(unsigned long a0, unsign    
 27  *                unsigned long a3, unsigned l    
 28  *                unsigned long a6, unsigned l    
 29  *                struct arm_smccc_quirk *quir    
 30  */                                               
 31 SYM_FUNC_START(__arm_smccc_smc)                   
 32         SMCCC   smc                               
 33 SYM_FUNC_END(__arm_smccc_smc)                     
 34 EXPORT_SYMBOL(__arm_smccc_smc)                    
 35                                                   
 36 /*                                                
 37  * void arm_smccc_hvc(unsigned long a0, unsign    
 38  *                unsigned long a3, unsigned l    
 39  *                unsigned long a6, unsigned l    
 40  *                struct arm_smccc_quirk *quir    
 41  */                                               
 42 SYM_FUNC_START(__arm_smccc_hvc)                   
 43         SMCCC   hvc                               
 44 SYM_FUNC_END(__arm_smccc_hvc)                     
 45 EXPORT_SYMBOL(__arm_smccc_hvc)                    
 46                                                   
 47         .macro SMCCC_1_2 instr                    
 48         /* Save `res` and free a GPR that won'    
 49         stp     x1, x19, [sp, #-16]!              
 50                                                   
 51         /* Ensure `args` won't be clobbered wh    
 52         mov     x19, x0                           
 53                                                   
 54         /* Load the registers x0 - x17 from th    
 55         ldp     x0, x1, [x19, #ARM_SMCCC_1_2_R    
 56         ldp     x2, x3, [x19, #ARM_SMCCC_1_2_R    
 57         ldp     x4, x5, [x19, #ARM_SMCCC_1_2_R    
 58         ldp     x6, x7, [x19, #ARM_SMCCC_1_2_R    
 59         ldp     x8, x9, [x19, #ARM_SMCCC_1_2_R    
 60         ldp     x10, x11, [x19, #ARM_SMCCC_1_2    
 61         ldp     x12, x13, [x19, #ARM_SMCCC_1_2    
 62         ldp     x14, x15, [x19, #ARM_SMCCC_1_2    
 63         ldp     x16, x17, [x19, #ARM_SMCCC_1_2    
 64                                                   
 65         \instr #0                                 
 66                                                   
 67         /* Load the `res` from the stack */       
 68         ldr     x19, [sp]                         
 69                                                   
 70         /* Store the registers x0 - x17 into t    
 71         stp     x0, x1, [x19, #ARM_SMCCC_1_2_R    
 72         stp     x2, x3, [x19, #ARM_SMCCC_1_2_R    
 73         stp     x4, x5, [x19, #ARM_SMCCC_1_2_R    
 74         stp     x6, x7, [x19, #ARM_SMCCC_1_2_R    
 75         stp     x8, x9, [x19, #ARM_SMCCC_1_2_R    
 76         stp     x10, x11, [x19, #ARM_SMCCC_1_2    
 77         stp     x12, x13, [x19, #ARM_SMCCC_1_2    
 78         stp     x14, x15, [x19, #ARM_SMCCC_1_2    
 79         stp     x16, x17, [x19, #ARM_SMCCC_1_2    
 80                                                   
 81         /* Restore original x19 */                
 82         ldp     xzr, x19, [sp], #16               
 83         ret                                       
 84 .endm                                             
 85                                                   
 86 /*                                                
 87  * void arm_smccc_1_2_hvc(const struct arm_smc    
 88  *                        struct arm_smccc_1_2    
 89  */                                               
 90 SYM_FUNC_START(arm_smccc_1_2_hvc)                 
 91         SMCCC_1_2 hvc                             
 92 SYM_FUNC_END(arm_smccc_1_2_hvc)                   
 93 EXPORT_SYMBOL(arm_smccc_1_2_hvc)                  
 94                                                   
 95 /*                                                
 96  * void arm_smccc_1_2_smc(const struct arm_smc    
 97  *                        struct arm_smccc_1_2    
 98  */                                               
 99 SYM_FUNC_START(arm_smccc_1_2_smc)                 
100         SMCCC_1_2 smc                             
101 SYM_FUNC_END(arm_smccc_1_2_smc)                   
102 EXPORT_SYMBOL(arm_smccc_1_2_smc)                  
                                                      

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