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

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-omap2/omap-smc.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/mach-omap2/omap-smc.S (Architecture sparc) and /arch/i386/mach-omap2/omap-smc.S (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-only */       
  2 /*                                                
  3  * OMAP34xx and OMAP44xx secure APIs file.        
  4  *                                                
  5  * Copyright (C) 2010 Texas Instruments, Inc.     
  6  * Written by Santosh Shilimkar <santosh.shilim    
  7  *                                                
  8  * Copyright (C) 2012 Ivaylo Dimitrov <freemang    
  9  * Copyright (C) 2013 Pali Rohár <pali@kernel.    
 10  */                                               
 11                                                   
 12 #include <linux/linkage.h>                        
 13                                                   
 14 /*                                                
 15  * This is common routine to manage secure mon    
 16  * used to modify the PL310 secure registers.     
 17  * 'r0' contains the value to be modified and     
 18  * the monitor API number. It uses few CPU reg    
 19  * internally and hence they need be backed up    
 20  * link register "lr".                            
 21  * Function signature : void _omap_smc1(u32 fn    
 22  */                                               
 23         .arch armv7-a                             
 24         .arch_extension sec                       
 25 ENTRY(_omap_smc1)                                 
 26         stmfd   sp!, {r2-r12, lr}                 
 27         mov     r12, r0                           
 28         mov     r0, r1                            
 29         dsb                                       
 30         smc     #0                                
 31         ldmfd   sp!, {r2-r12, pc}                 
 32 ENDPROC(_omap_smc1)                               
 33                                                   
 34 /**                                               
 35  * u32 omap_smc2(u32 id, u32 falg, u32 pargs)     
 36  * Low level common routine for secure HAL and    
 37  * @id: Application ID of HAL APIs                
 38  * @flag: Flag to indicate the criticality of     
 39  * @pargs: Physical address of parameter list     
 40  *          with number of parametrs              
 41  */                                               
 42 ENTRY(omap_smc2)                                  
 43         stmfd   sp!, {r4-r12, lr}                 
 44         mov     r3, r2                            
 45         mov     r2, r1                            
 46         mov     r1, #0x0        @ Process ID      
 47         mov     r6, #0xff                         
 48         mov     r12, #0x00      @ Secure Servi    
 49         mov     r7, #0                            
 50         mcr     p15, 0, r7, c7, c5, 6             
 51         dsb                                       
 52         dmb                                       
 53         smc     #0                                
 54         ldmfd   sp!, {r4-r12, pc}                 
 55 ENDPROC(omap_smc2)                                
 56                                                   
 57 /**                                               
 58  * u32 omap_smc3(u32 service_id, u32 process_i    
 59  * Low level common routine for secure HAL and    
 60  * r0 - @service_id: Secure Service ID            
 61  * r1 - @process_id: Process ID                   
 62  * r2 - @flag: Flag to indicate the criticalit    
 63  * r3 - @pargs: Physical address of parameter     
 64  */                                               
 65 ENTRY(omap_smc3)                                  
 66         stmfd   sp!, {r4-r11, lr}                 
 67         mov     r12, r0         @ Copy the sec    
 68         mov     r6, #0xff       @ Indicate new    
 69         dsb                     @ Memory Barri    
 70         smc     #1              @ Call PPA ser    
 71         ldmfd   sp!, {r4-r11, pc}                 
 72 ENDPROC(omap_smc3)                                
 73                                                   
 74 ENTRY(omap_modify_auxcoreboot0)                   
 75         stmfd   sp!, {r1-r12, lr}                 
 76         ldr     r12, =0x104                       
 77         dsb                                       
 78         smc     #0                                
 79         ldmfd   sp!, {r1-r12, pc}                 
 80 ENDPROC(omap_modify_auxcoreboot0)                 
 81                                                   
 82 ENTRY(omap_auxcoreboot_addr)                      
 83         stmfd   sp!, {r2-r12, lr}                 
 84         ldr     r12, =0x105                       
 85         dsb                                       
 86         smc     #0                                
 87         ldmfd   sp!, {r2-r12, pc}                 
 88 ENDPROC(omap_auxcoreboot_addr)                    
 89                                                   
 90 ENTRY(omap_read_auxcoreboot0)                     
 91         stmfd   sp!, {r2-r12, lr}                 
 92         ldr     r12, =0x103                       
 93         dsb                                       
 94         smc     #0                                
 95         ldmfd   sp!, {r2-r12, pc}                 
 96 ENDPROC(omap_read_auxcoreboot0)                   
                                                      

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