Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'compel/arch/aarch64/plugins/std/syscalls/syscall-common.S')
-rw-r--r--compel/arch/aarch64/plugins/std/syscalls/syscall-common.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/compel/arch/aarch64/plugins/std/syscalls/syscall-common.S b/compel/arch/aarch64/plugins/std/syscalls/syscall-common.S
new file mode 100644
index 000000000..aeb89ea88
--- /dev/null
+++ b/compel/arch/aarch64/plugins/std/syscalls/syscall-common.S
@@ -0,0 +1,19 @@
+#include "common/asm/linkage.h"
+
+syscall_common:
+ svc #0
+ ret
+
+
+.macro syscall name, nr
+ ENTRY(\name)
+ mov x8, \nr
+ b syscall_common
+ END(\name)
+.endm
+
+
+ENTRY(__cr_restore_rt)
+ mov x8, __NR_rt_sigreturn
+ svc #0
+END(__cr_restore_rt)