summaryrefslogblamecommitdiff
path: root/src/thread/x86_64/syscall_cp.s
blob: 788c53cc756fdf866a48c8e6ed6dea8f7a106e43 (plain) (tree)
1
2
3
4
5
6
7
8
9

                        
                                  
                 



                       
                      
                    
                     






                        
                        


                
           
.text
.global __syscall_cp_asm
.type   __syscall_cp_asm,@function
__syscall_cp_asm:

.global __cp_begin
__cp_begin:
	mov (%rdi),%eax
	test %eax,%eax
	jnz __cancel
	mov %rdi,%r11
	mov %rsi,%rax
	mov %rdx,%rdi
	mov %rcx,%rsi
	mov %r8,%rdx
	mov %r9,%r10
	mov 8(%rsp),%r8
	mov 16(%rsp),%r9
	mov %r11,8(%rsp)
	syscall
.global __cp_end
__cp_end:
	ret