GE ZHIGUO writes:

> Hi, 
> Can you figure out the source code which causes this problem.

As I said, it's routines _spin_lock_irq and _spin_lock_irqsave.

Here's the generated code (most of it appears to come from __ticket_spin_lock):

ffffffff805f0c40 <_spin_lock_irqsave>:
ffffffff805f0c40:       9c                      pushfq 
ffffffff805f0c41:       58                      pop    %rax
ffffffff805f0c42:       fa                      cli    
ffffffff805f0c43:       ba 00 01 00 00          mov    $0x100,%edx
ffffffff805f0c48:       f0 66 0f c1 17          lock xadd %dx,(%rdi)
ffffffff805f0c4d:       38 f2                   cmp    %dh,%dl
ffffffff805f0c4f:       74 06                   je     ffffffff805f0c57 
<_spin_lock_irqsave+0x17>
ffffffff805f0c51:       f3 90                   pause  
ffffffff805f0c53:       8a 17                   mov    (%rdi),%dl
ffffffff805f0c55:       eb f6                   jmp    ffffffff805f0c4d 
<_spin_lock_irqsave+0xd>
ffffffff805f0c57:       c3                      retq   
ffffffff805f0c58:       0f 1f 84 00 00 00 00    nopl   0x0(%rax,%rax,1)
ffffffff805f0c5f:       00 

ffffffff805f0c60 <_spin_lock_irq>:
ffffffff805f0c60:       fa                      cli    
ffffffff805f0c61:       b8 00 01 00 00          mov    $0x100,%eax
ffffffff805f0c66:       f0 66 0f c1 07          lock xadd %ax,(%rdi)
ffffffff805f0c6b:       38 e0                   cmp    %ah,%al
ffffffff805f0c6d:       74 06                   je     ffffffff805f0c75 
<_spin_lock_irq+0x15>
ffffffff805f0c6f:       f3 90                   pause  
ffffffff805f0c71:       8a 07                   mov    (%rdi),%al
ffffffff805f0c73:       eb f6                   jmp    ffffffff805f0c6b 
<_spin_lock_irq+0xb>
ffffffff805f0c75:       c3                      retq   
ffffffff805f0c76:       66 2e 0f 1f 84 00 00    nopw   %cs:0x0(%rax,%rax,1)
ffffffff805f0c7d:       00 00 00 



Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to