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:
|
|
|
860627 |
movq (%rcx), %rcx /* check content of ptr */
|
|
|
860627 |
test %ecx, %ecx
|
|
|
860627 |
jnz __cancel /* thread is pending cancellation */
|
|
|
860627 |
|
|
|
860627 |
movq %rdx, %rcx/* move water */
|
|
|
860627 |
movq %r8, %rdx/* from one glass */
|
|
|
860627 |
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
|