Blame src/thread/nt64/syscall_cp.s
|
|
860627 |
.text
|
|
|
860627 |
.globl __syscall_cp_asm
|
|
|
860627 |
.globl __cp_begin
|
|
|
860627 |
.globl __cp_end
|
|
|
860627 |
|
|
|
860627 |
__syscall_cp_asm:
|
|
|
860627 |
__cp_begin:
|
|
|
c5e6e5 |
movq (%rcx), %rcx # check content of ptr
|
|
|
860627 |
test %ecx, %ecx
|
|
|
c5e6e5 |
jnz __cancel # thread is pending cancellation
|
|
|
860627 |
|
|
|
c5e6e5 |
movq %rdx, %rcx # move water
|
|
|
c5e6e5 |
movq %r8, %rdx # from one glass
|
|
|
c5e6e5 |
movq %r9, %r8 # to another
|
|
|
860627 |
movq 0x28(%rsp), %r9
|
|
|
860627 |
|
|
|
860627 |
movq 0x30(%rsp),%rax
|
|
|
860627 |
movq %rax, 0x28(%rsp)
|
|
|
860627 |
|
|
|
860627 |
movq 0x38(%rsp),%r10
|
|
|
860627 |
movq %r10, 0x30(%rsp)
|
|
|
860627 |
|
|
|
860627 |
movq 0x40(%rsp),%r10
|
|
|
860627 |
movq %r10, 0x38(%rsp)
|
|
|
860627 |
|
|
|
860627 |
jmp __syscall
|
|
|
860627 |
|
|
|
860627 |
__cp_end:
|
|
|
860627 |
ret
|
|
|
c00c94 |
|
|
|
c00c94 |
|
|
|
c00c94 |
.section .got$__syscall_cp_asm
|
|
|
c00c94 |
.global __imp___syscall_cp_asm
|
|
|
c00c94 |
__imp___syscall_cp_asm:
|
|
|
c00c94 |
.quad __syscall_cp_asm
|
|
|
c00c94 |
|
|
|
c00c94 |
|
|
|
c00c94 |
.section .got$__cp_begin
|
|
|
c00c94 |
.global __imp___cp_begin
|
|
|
c00c94 |
__imp___cp_begin:
|
|
|
c00c94 |
.quad __cp_begin
|
|
|
c00c94 |
|
|
|
c00c94 |
.section .got$__cp_end
|
|
|
c00c94 |
.global __imp___cp_end
|
|
|
c00c94 |
__imp___cp_end:
|
|
|
c00c94 |
.quad __cp_end
|