1
2
3
4
5
6
7
8
9
10
11
12 #include <linux/linkage.h>
13
14
15
16
17
18
19
20
21
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
36
37
38
39
40
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 Service ID
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
59
60
61
62
63
64
65 ENTRY(omap_smc3)
66 stmfd sp!, {r4-r11, lr}
67 mov r12, r0 @ Copy the secure service ID
68 mov r6, #0xff @ Indicate new Task call
69 dsb @ Memory Barrier (not sure if needed, copied from omap_smc2)
70 smc #1 @ Call PPA service
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)