forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/arm64/kernel/smccc-call.S
....@@ -1,22 +1,14 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015, Linaro Limited
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License Version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
134 */
145 #include <linux/linkage.h>
156 #include <linux/arm-smccc.h>
7
+
168 #include <asm/asm-offsets.h>
9
+#include <asm/assembler.h>
1710
1811 .macro SMCCC instr
19
- .cfi_startproc
2012 \instr #0
2113 ldr x4, [sp]
2214 stp x0, x1, [x4, #ARM_SMCCC_RES_X0_OFFS]
....@@ -28,7 +20,6 @@
2820 b.ne 1f
2921 str x6, [x4, ARM_SMCCC_QUIRK_STATE_OFFS]
3022 1: ret
31
- .cfi_endproc
3223 .endm
3324
3425 /*
....@@ -37,9 +28,10 @@
3728 * unsigned long a6, unsigned long a7, struct arm_smccc_res *res,
3829 * struct arm_smccc_quirk *quirk)
3930 */
40
-ENTRY(__arm_smccc_smc)
31
+SYM_FUNC_START(__arm_smccc_smc)
4132 SMCCC smc
42
-ENDPROC(__arm_smccc_smc)
33
+SYM_FUNC_END(__arm_smccc_smc)
34
+EXPORT_SYMBOL(__arm_smccc_smc)
4335
4436 /*
4537 * void arm_smccc_hvc(unsigned long a0, unsigned long a1, unsigned long a2,
....@@ -47,6 +39,7 @@
4739 * unsigned long a6, unsigned long a7, struct arm_smccc_res *res,
4840 * struct arm_smccc_quirk *quirk)
4941 */
50
-ENTRY(__arm_smccc_hvc)
42
+SYM_FUNC_START(__arm_smccc_hvc)
5143 SMCCC hvc
52
-ENDPROC(__arm_smccc_hvc)
44
+SYM_FUNC_END(__arm_smccc_hvc)
45
+EXPORT_SYMBOL(__arm_smccc_hvc)