[U-Boot] ppc 85xx inline assembly

Wolfgang Denk wd at denx.de
Sat Apr 18 12:00:16 CEST 2009


Dear Qingyu Song,

In message <352fc0270904171713s58d231f4u8445292dddbf21ff at mail.gmail.com> you wrote:
>
> extern inline void out_be32(volatile unsigned __iomem *addr, int val)
> {
>     __asm__ __volatile__("sync; stw%U0%X0 %1,%0" : "=m" (*addr) : "r"
> (val));
> }
> 
> I am not familiar with the syntax here, especially for the %U0%X0 part, can
> someone help me to translate this into assemble code?

Ask gcc.  He is really great in translating C code into assembly code.
Try "gcc -S ... "

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The world is coming to an end -- save your buffers!


More information about the U-Boot mailing list