hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/arch/arm/mach-omap2/omap-smc.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * OMAP34xx and OMAP44xx secure APIs file.
34 *
....@@ -5,11 +6,7 @@
56 * Written by Santosh Shilimkar <santosh.shilimkar@ti.com>
67 *
78 * Copyright (C) 2012 Ivaylo Dimitrov <freemangordon@abv.bg>
8
- * Copyright (C) 2013 Pali Rohár <pali.rohar@gmail.com>
9
- *
10
- * This program is free software,you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License version 2 as
12
- * published by the Free Software Foundation.
9
+ * Copyright (C) 2013 Pali Rohár <pali@kernel.org>
1310 */
1411
1512 #include <linux/linkage.h>
....@@ -21,17 +18,18 @@
2118 * the monitor API number. It uses few CPU registers
2219 * internally and hence they need be backed up including
2320 * link register "lr".
24
- * Function signature : void omap_smc1(u32 fn, u32 arg)
21
+ * Function signature : void _omap_smc1(u32 fn, u32 arg)
2522 */
26
-
27
-ENTRY(omap_smc1)
23
+ .arch armv7-a
24
+ .arch_extension sec
25
+ENTRY(_omap_smc1)
2826 stmfd sp!, {r2-r12, lr}
2927 mov r12, r0
3028 mov r0, r1
3129 dsb
3230 smc #0
3331 ldmfd sp!, {r2-r12, pc}
34
-ENDPROC(omap_smc1)
32
+ENDPROC(_omap_smc1)
3533
3634 /**
3735 * u32 omap_smc2(u32 id, u32 falg, u32 pargs)