[U-Boot-Users] [PATCH0/2] Re-do the patch for adding DO_SYNC in flash_write_cmd

Wolfgang Denk wd at denx.de
Sat Feb 10 02:02:21 CET 2007


In message <1defaf580702091159s2e2fc9e7wf962d4fff0ec985c at mail.gmail.com> you wrote:
>
> > > Because SYNC is already defined in include/ppc_asm.tmpl for some ppc
> > > based CPUs to use, I use DO_SYNC instead of SYNC for this patch.
> >
> > AFAICT that's a general definition which is not specific to "some ppc
> > based CPUs" only. Rather than redefining it why  not  just  use  this
> > definition? It seems to match our purposes.
> 
> Except that it's not written in C ;-)

You cannot write this in C anyway. C has no concept of such things.
You will always end up withpulling some "asm" tricks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office:  Kirchenstr. 5,       D-82194 Groebenzell,            Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
... not meant for the weak-at-heart: /^(?=.*one)(?=.*two)/
If you can follow that, you can use it.
          - Randal L. Schwartz in <ukpw67rhl3.fsf at julie.teleport.com>




More information about the U-Boot mailing list