From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ivoti.terra.com.br (ivoti.terra.com.br [200.176.10.212]) by ozlabs.org (Postfix) with ESMTP id 37DFE6828E for ; Wed, 14 Sep 2005 04:14:57 +1000 (EST) Received: from itapoa.terra.com.br (itapoa.terra.com.br [200.176.10.194]) by ivoti.terra.com.br (Postfix) with ESMTP id 87B659EF0D for ; Tue, 13 Sep 2005 14:22:21 -0300 (BRT) Date: Tue, 13 Sep 2005 14:22:13 -0300 From: Aristeu Sergio Rozanski Filho To: Marcelo Tosatti Message-ID: <20050913172213.GA3964@oops.ghostprotocols.net> References: <4326968F.5030609@2net.co.uk> <20050913122541.GB9076@cathedrallabs.org> <20050913151132.GF10602@dmt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20050913151132.GF10602@dmt.cnet> Cc: linuxppc-embedded@ozlabs.org Subject: Re: gdb hangs on Linux 2.6.11 on 8xx List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Marcelo, after the last Chris post, I decided to double check if I wasn't doing something wrong. vanilla 2.6.13 hangs in the same way my patched 2.6.10 does. > How does the disassemble of __switch_to looks like? from 2.6.13 kernel Dump of assembler code for function __switch_to: 0xc00055a4 <__switch_to+0>: mflr r0 0xc00055a8 <__switch_to+4>: stwu r1,-16(r1) 0xc00055ac <__switch_to+8>: stw r31,12(r1) 0xc00055b0 <__switch_to+12>: mr r11,r4 0xc00055b4 <__switch_to+16>: stw r0,20(r1) 0xc00055b8 <__switch_to+20>: mfmsr r31 0xc00055bc <__switch_to+24>: rlwinm r0,r31,0,17,15 0xc00055c0 <__switch_to+28>: mtmsr r0 0xc00055c4 <__switch_to+32>: lwz r10,460(r4) 0xc00055c8 <__switch_to+36>: addi r3,r2,456 0xc00055cc <__switch_to+40>: addi r4,r4,456 0xc00055d0 <__switch_to+44>: cmpwi cr7,r10,0 0xc00055d4 <__switch_to+48>: beq- cr7,0xc00055e8 <__switch_to+68> 0xc00055d8 <__switch_to+52>: lis r9,-16354 0xc00055dc <__switch_to+56>: lwz r0,28880(r9) 0xc00055e0 <__switch_to+60>: cmpw cr7,r0,r11 0xc00055e4 <__switch_to+64>: beq- cr7,0xc0005604 <__switch_to+96> 0xc00055e8 <__switch_to+68>: bl 0xc0003024 <_switch> 0xc00055ec <__switch_to+72>: mtmsr r31 0xc00055f0 <__switch_to+76>: lwz r0,20(r1) 0xc00055f4 <__switch_to+80>: lwz r31,12(r1) 0xc00055f8 <__switch_to+84>: addi r1,r1,16 0xc00055fc <__switch_to+88>: mtlr r0 0xc0005600 <__switch_to+92>: blr 0xc0005604 <__switch_to+96>: lwz r0,132(r10) 0xc0005608 <__switch_to+100>: oris r0,r0,512 0xc000560c <__switch_to+104>: stw r0,132(r10) 0xc0005610 <__switch_to+108>: b 0xc00055e8 <__switch_to+68> End of assembler dump. > Chris oopsen is exactly what the 'icbi' patch fixes. notice that what I'm having here is not an oops but if for Chris works, I must be doing something wrong, sorry for the noise -- Aristeu