NetBSD-Bugs archive

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

Re: toolchain/53185: axe(4) on evbarm cause panic, possibly compiler-related



The following reply was made to PR toolchain/53185; it has been noted by GNATS.

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: toolchain/53185: axe(4) on evbarm cause panic, possibly
 compiler-related
Date: Mon, 16 Apr 2018 18:38:58 +0200

 On Mon, Apr 16, 2018 at 04:15:01PM +0000, Manuel Bouyer wrote:
 >  > 
 >  > 	0x80095134 points to the memcpy() call in axe_rxeof() at line 1251.
 >  > 	More specifically:
 >  > 0x80095124 <+272>:   ldr     r5, [r11, #-52] ; 0xffffffcc
 >  > 0x80095128 <+276>:   b       0x80095274 <axe_rxeof+608>
 >  > 0x8009512c <+280>:   cmp     r5, #3
 >  > 0x80095130 <+284>:   bls     0x80095350 <axe_rxeof+828>
 >  > 0x80095134 <+288>:   ldr     r3, [r8], #4
 >  > 0x80095138 <+292>:   movw    r0, #2047       ; 0x7ff
 >  > 0x8009513c <+296>:   sub     r2, r5, #4
 >  > 0x80095140 <+300>:   str     r3, [r11, #-48] ; 0xffffffd0
 
 gcc 5.5.0 in netbsd-8 would use 2 ldrh instead of one ldr here;
 which would have worked in my case.
 
 But, in the general case, the loop does
 		buf += rxlen
 and I don't think there's a requirement for rxlen to be a multiple of 2 here.
 
 -- 
 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
      NetBSD: 26 ans d'experience feront toujours la difference
 --
 


Home | Main Index | Thread Index | Old Index