From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Ryser Date: Tue, 16 Mar 2004 18:02:16 -0800 Subject: [U-Boot-Users] v2p4 porting troubles In-Reply-To: <009b01c40baa$a324f2b0$cb01a8c0@xiphos.ca> References: <20040316203653.2844CC0655@atlas.denx.de> <009b01c40baa$a324f2b0$cb01a8c0@xiphos.ca> Message-ID: <4057B1A8.9040308@xilinx.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Joshua, >The code from Xilinx is as follows... > >void XIo_Out32(XIo_Address OutAddress, Xuint32 Value) >{ > __asm__ volatile ("stw %0,0(%1); eieio" : : "r" (Value), "r" >(OutAddress)); >} > Yes, this code is broken. You can use the work-around as pointed out by Wolfgang or you can use the xio.h that is part of u-boot and the Linux kernel. In u-boot you can find it at board/xilinx/common/xio.h In Linux you can find it at arch/ppc/platforms/xilinx_ocp/xio.h I will make sure this piece of code gets fixed in EDK. - Peter