From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 30 Jun 2005 23:02:00 +0200 Subject: [U-Boot-Users] cfi_flash is now working with 64 bit port width In-Reply-To: Your message of "Thu, 30 Jun 2005 15:42:22 CDT." <42C4592E.7080009@orkun.us> Message-ID: <20050630210200.64BBC353A0E@atlas.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 In message <42C4592E.7080009@orkun.us> you wrote: > > > __asm__ __volatile__ ("lfd 1, 0(%0)"::"r" (data)); > > __asm__ __volatile__ ("stfd 1, 0(%0)"::"r" (addr)); > > } > > This is probably not acceptable for cfi_flash.c. cfi_flash.c is used by > multiple CPU architectures so PowerPC assembly cannot be used. You have > to find a solution based on "C" only. ...which probably does not exist, so this is a valid and working approach, although incomplete. Appropriate code for other archi- tectures can be added later. At least for MIPS. Or is there an ARM processor with 64 bit data bus? > How did you use "double" and it did not work? Please give example of the > work you tried... It did not work in the intended sense as the compiler did not generate any FP instructions - which is to be expected as we explicitely tell him to use -msoft-float. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Microsoft Multimedia: You have nice graphics, sound and animations when the system crashes.