[PATCH v5 22/22] loongarch: Fix Race conditions in pthread cancellation [BZ#12683]

caiyinyu caiyinyu@loongson.cn
Tue Apr 11 12:21:13 GMT 2023


在 2023/4/11 下午8:00, caiyinyu 写道:
>
> 在 2023/4/11 下午2:19, Xi Ruoyao 写道:
>> On Mon, 2023-04-10 at 17:46 -0300, Adhemerval Zanella via Libc-alpha
>> wrote:
>>
>> /* snip */
>>
>>> +1:
>>> +       addi.d  $r3,$r3,-16
>>> +       cfi_def_cfa_offset (16)
>>> +       st.d    $r1,$r3,8
>>> +       cfi_offset (1, -8)
>>> +       bl      __syscall_do_cancel
>> Can we simply use "b __syscall_do_cancel" for 1: like AArch64?
>
> In LoongArch, the "b" instruction is equivalent to the "b" instruction 
> in AArch64, and similarly,
>
> the "bl" instruction in LoongArch is equivalent to the "bl" 
> instruction in AArch64.

This is our instruction manual.

https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#arithmetic-operation-instructions


>
>>> +
>>> +END (__syscall_cancel_arch)



More information about the Libc-alpha mailing list