소스 검색

[Pal/Linux] Fix _DkThreadExit call in thread_start

The old code had one indirection too much. This fixes the case that the
thread function returns (instead of calling DkThreadExit). Before this
triggered a SIGSEGV.
Simon Gaiser 6 년 전
부모
커밋
003035de7e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Pal/src/host/Linux/clone-x86_64.S

+ 1 - 1
Pal/src/host/Linux/clone-x86_64.S

@@ -108,7 +108,7 @@ thread_start:
 	/* movl $SYS_ify(exit), %eax */
 	/* syscall */
 	/* Instead of syscall exit, let's call _DkThreadExit */
-	call *_DkThreadExit(%rip)
+	call _DkThreadExit
 	cfi_endproc
 
 	cfi_startproc