
18 Apr
2009
18 Apr
'09
noon
Dear Qingyu Song,
In message 352fc0270904171713s58d231f4u8445292dddbf21ff@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@denx.de
The world is coming to an end -- save your buffers!