arch/arm: Use macro defined swi range in dispatch_syscall

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: Ia8503a13c5b04fa8cc13cee74b75b19623986c1d
This commit is contained in:
Huang Qi
2021-03-25 11:15:19 +08:00
committed by David Sidrane
parent 575022debc
commit 2e2af6e3d7
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ static void dispatch_syscall(void)
" pop {r4, r5}\n" /* Recover R4 and R5 */
" mov r2, r0\n" /* R2=Save return value in R2 */
" mov r0, #3\n" /* R0=SYS_syscall_return */
" svc 0" /* Return from the syscall */
" svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */
);
}
#endif
+1 -1
View File
@@ -98,7 +98,7 @@ static void dispatch_syscall(void)
" add sp, sp, #16\n" /* Destroy the stack frame */
" mov r2, r0\n" /* R2=Save return value in R2 */
" mov r0, #0\n" /* R0=SYS_syscall_return */
" svc #0x900001\n" /* Return from the SYSCALL */
" svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */
);
}
#endif
+1 -1
View File
@@ -108,7 +108,7 @@ static void dispatch_syscall(void)
" add sp, sp, r2\n" /* Restore SP */
" mov r2, r0\n" /* R2=Save return value in R2 */
" mov r0, #3\n" /* R0=SYS_syscall_return */
" svc 0" /* Return from the syscall */
" svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */
);
}
#endif
+1 -1
View File
@@ -95,7 +95,7 @@ static void dispatch_syscall(void)
" add sp, sp, #16\n" /* Destroy the stack frame */
" mov r2, r0\n" /* R2=Save return value in R2 */
" mov r0, #0\n" /* R0=SYS_syscall_return */
" svc #0x900001\n" /* Return from the SYSCALL */
" svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */
);
}
#endif
+1 -1
View File
@@ -107,7 +107,7 @@ static void dispatch_syscall(void)
" add sp, sp, r2\n" /* Restore SP */
" mov r2, r0\n" /* R2=Save return value in R2 */
" mov r0, #3\n" /* R0=SYS_syscall_return */
" svc 0" /* Return from the syscall */
" svc %0\n"::"i"(SYS_syscall) /* Return from the SYSCALL */
);
}
#endif