aboutsummaryrefslogtreecommitdiffstats
path: root/toj/center/src/judgk_syscall_asm.S
diff options
context:
space:
mode:
Diffstat (limited to 'toj/center/src/judgk_syscall_asm.S')
-rwxr-xr-xtoj/center/src/judgk_syscall_asm.S54
1 files changed, 0 insertions, 54 deletions
diff --git a/toj/center/src/judgk_syscall_asm.S b/toj/center/src/judgk_syscall_asm.S
deleted file mode 100755
index 03ff960..0000000
--- a/toj/center/src/judgk_syscall_asm.S
+++ /dev/null
@@ -1,54 +0,0 @@
-.code64
-.section .text
-.global judgk_syscall_block
-.extern judgk_syscall_check
-
-judgk_syscall_block:
- push %rax
- push %rbx
- push %rcx
- push %rdx
- push %rsi
- push %rdi
- push %rbp
- push %r8
- push %r9
- push %r10
- push %r11
- push %r12
- push %r13
- push %r14
- push %r15
- pushfq
-
- call judgk_syscall_check
-
- popfq
- pop %r15
- pop %r14
- pop %r13
- pop %r12
- pop %r11
- pop %r10
- pop %r9
- pop %r8
- pop %rbp
- pop %rdi
- pop %rsi
- pop %rdx
- pop %rcx
- pop %rbx
-
- test %rax,%rax
- pop %rax
- jnz .block
-
- push %rdx //use rdx, because mul rax => rdx:rax, kill two birds with one stone
- mov $8,%rdx
- mul %rdx
- pop %rdx
- add judgk_syscall_ori_table,%rax
- jmp *(%rax)
-
-.block:
- ret