[compiler-rt] [sanitizer_common][PowerPC64] Fix internal_clone() error handling (PR #99908)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 19:01:14 PDT 2024


================
@@ -1601,8 +1601,8 @@ uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
       "sc\n\t"
 
       /* Test if syscall was successful */
+      "bso-   0f\n\t"
----------------
chenzheng1030 wrote:

Sorry, I am not so familiar with how the system call is handled.

My question is: system call is not successful only when cr0, bit SO is set when system call is handled? i.e., the r3 is not an indicator now? When r3 is not 0, I see you don't return -1.


https://github.com/llvm/llvm-project/pull/99908


More information about the llvm-commits mailing list