Skip to content

Commit

Permalink
arch/armv7-a: Change space to tab in arm_smccc.S
Browse files Browse the repository at this point in the history
follow the coding style from other assembler source files

Signed-off-by: Xiang Xiao <[email protected]>
  • Loading branch information
xiaoxiang781216 authored and anchao committed Dec 28, 2023
1 parent 770d579 commit 087c519
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions arch/arm/src/armv7-a/arm_smccc.S
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,40 @@
* handled by Secure Monitor code running in EL3.
*/

.text
.syntax unified
.text
.syntax unified

.global arm_smccc_smc
.type arm_smccc_smc, function

.global arm_smccc_smc
.type arm_smccc_smc, function
arm_smccc_smc:
mov r12, sp
push {r4-r7}
ldm r12, {r4-r7}
smc #0
pop {r4-r7}
ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3}
bx lr
mov r12, sp
push {r4-r7}
ldm r12, {r4-r7}
smc #0
pop {r4-r7}
ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3}
bx lr

/* The HVC instruction is used to generate a synchronous exception that is
* handled by a hypervisor running in EL2.
*/
.size arm_smccc_smc, . - arm_smccc_smc

/* 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:
mov r12, sp
push {r4-r7}
ldm r12, {r4-r7}
hvc #0
pop {r4-r7}
ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3}
bx lr
mov r12, sp
push {r4-r7}
ldm r12, {r4-r7}
hvc #0
pop {r4-r7}
ldr r12, [sp, #(4 * 4)]
stm r12, {r0-r3}
bx lr

.size arm_smccc_hvc, . - arm_smccc_hvc
.end

0 comments on commit 087c519

Please sign in to comment.