未验证 提交 e27d096a 编写于 作者: O openharmony_ci 提交者: Gitee

!949 Optimize syscall

Merge pull request !949 from haotuo/syscall_opt
......@@ -139,6 +139,7 @@ if (musl_arch == "arm") {
"src/thread/aarch64/__unmapself.s",
"src/thread/aarch64/clone.s",
"src/thread/aarch64/syscall_cp.s",
"src/misc/aarch64/syscall.s",
]
} else if (musl_arch == "x86_64") {
musl_src_arch_file = [
......@@ -1626,6 +1627,7 @@ if (musl_arch == "arm") {
"src/thread/__unmapself.c",
"src/thread/clone.c",
"src/thread/syscall_cp.c",
"src/misc/syscall.c",
]
} else if (musl_arch == "x86_64") {
musl_src_filterout = [
......@@ -2196,6 +2198,7 @@ musl_src_porting_file = [
"src/thread/pthread_cancel.c",
"src/mq/mq_notify.c",
"src/aio/aio.c",
"src/misc/aarch64/syscall.s",
]
musl_inc_hook_files = [
......
.hidden __syscall_ret
.global syscall
.type syscall,%function
syscall:
mov x8,x0
mov x0,x1
mov x1,x2
mov x2,x3
mov x3,x4
mov x4,x5
mov x5,x6
svc #0
b __syscall_ret
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册