arch/armv7-a: Change space to tab in arm_smccc.S

follow the coding style from other assembler source files

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-12-26 12:09:03 +08:00 committed by archer
parent 770d579630
commit 087c519dd6

View File

@ -44,33 +44,40 @@
* handled by Secure Monitor code running in EL3. * handled by Secure Monitor code running in EL3.
*/ */
.text .text
.syntax unified .syntax unified
.global arm_smccc_smc
.type arm_smccc_smc, function
.global arm_smccc_smc
.type arm_smccc_smc, function
arm_smccc_smc: arm_smccc_smc:
mov r12, sp mov r12, sp
push {r4-r7} push {r4-r7}
ldm r12, {r4-r7} ldm r12, {r4-r7}
smc #0 smc #0
pop {r4-r7} pop {r4-r7}
ldr r12, [sp, #(4 * 4)] ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3} stm r12, {r0-r3}
bx lr bx lr
/* The HVC instruction is used to generate a synchronous exception that is .size arm_smccc_smc, . - arm_smccc_smc
* handled by a hypervisor running in EL2.
*/ /* The HVC instruction is used to generate a synchronous exception that is
* handled by a hypervisor running in EL2.
*/
.global arm_smccc_hvc
.type arm_smccc_hvc, function
.global arm_smccc_hvc
.type arm_smccc_hvc, function
arm_smccc_hvc: arm_smccc_hvc:
mov r12, sp mov r12, sp
push {r4-r7} push {r4-r7}
ldm r12, {r4-r7} ldm r12, {r4-r7}
hvc #0 hvc #0
pop {r4-r7} pop {r4-r7}
ldr r12, [sp, #(4 * 4)] ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3} stm r12, {r0-r3}
bx lr bx lr
.size arm_smccc_hvc, . - arm_smccc_hvc
.end