tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Porting Corosync/Pacemaker - Help needed with gdb



On Fri, Dec 07, 2012 at 12:29:37PM +0100, Stephan wrote:
> ------8<----------
> 0000000000007920 <__libc_mutex_trylock>:
>     7920:       64 48 8b 04 25 00 00    mov    %fs:0x0,%rax
>     7927:       00 00
>     7929:       48 8b 48 10             mov    0x10(%rax),%rcx
>     792d:       31 d2                   xor    %edx,%edx
>     792f:       48 89 d0                mov    %rdx,%rax
>     7932:       f0 48 0f b1 4f 10       lock cmpxchg %rcx,0x10(%rdi)
> ------------------
> 
> The question is what the first 2 mov instructions are supposed to do.
> What is %rax supposed to point to?

Load pthread_self().

Joerg


Home | Main Index | Thread Index | Old Index