From: Wolfgang Denk Date: Sat, 18 Apr 2009 12:00:16 +0200 Subject: [U-Boot] ppc 85xx inline assembly In-Reply-To: <352fc0270904171713s58d231f4u8445292dddbf21ff@mail.gmail.com> References: <352fc0270904171713s58d231f4u8445292dddbf21ff@mail.gmail.com> Message-ID: <20090418100016.BFC0483420E8@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 at denx.de The world is coming to an end -- save your buffers!