public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] maybe a priority mistake in mpc85xx_cpu\init.c
@ 2010-10-20 16:08 geniis
  2010-10-26 10:14 ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: geniis @ 2010-10-20 16:08 UTC (permalink / raw)
  To: u-boot

hi,
 
    I notice that in "arch\powerpc\cpu\mpc85xx\cpu_init.c" line 193, version 2010.06:
if (! memctl->br1 & 1)
 
    The original intention is to check if V bit of BR1 is set or not, but the operator "!" has higher priority than "&" ,I think it should be changed to:
 
if (! (memctl->br1 & 1))
 
    please check this question, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-26 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-20 16:08 [U-Boot] maybe a priority mistake in mpc85xx_cpu\init.c geniis
2010-10-26 10:14 ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox