Skip to content

Commit

Permalink
i#58 MacOS: properly mark BSD syscall in dynamorio_sys_exit for 64-bit.
Browse files Browse the repository at this point in the history
SVN-Revision: 3012
  • Loading branch information
derekbruening committed Nov 21, 2014
1 parent 1cae52d commit 52df315
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/arch/x86/x86.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,7 @@ dynamorio_sys_exit_next:
mov ARG2, REG_XAX /* kernel port, which we just acquired */
mov ARG1, 0 /* join semaphore: SEMAPHORE_NULL */
mov eax, SYS_bsdthread_terminate
or eax, HEX(2000000) /* 2<<24 for BSD syscall */
mov r10, rcx
syscall
# else
Expand Down

0 comments on commit 52df315

Please sign in to comment.