On 2017-09-26 4:23 PM, Christoph Biedl wrote:
The last statement gdb shows is

0x00010748 in __sync_fetch_and_add_8 ()

which is about 35 instructions into this function

    10744:       08 04 02 57     copy r4,r23
!  10748:       e4 00 81 60     be,l b0(sr2,r0),sr0,r31
    1074c:       34 14 00 04     ldi 2,r20

The be,l instruction is a light-weight syscall to do a kernel compare and swap operation.

Dave

--
John David Anglin  [email protected]

Reply via email to