Fix ARM compilation error
PATCH 1/1 Fix ARM compilation error
Hi,
the patch below eliminates two calls of the libgcc helper functions _divsi3 and _modsi3 when using a (standard) Hardware-FP toolchain (the unsigned counterparts _udivsi3 and _umodsi3 are already included in libarm.a).
"For historical reasons", the ARM community uses toolchains built for hardware-FP, even though so far no ARM CPU comes with FPU. Go figure.
Cheers
Anders
CHANGELOG:
Fixed compilation for ARM when using a (standard) Hard-FP toolchain Patch by Anders Larsen, 07 Oct 2005
---
drivers/cfi_flash.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/cfi_flash.c +2 -2
@@ -221,7 +221,7 @@ static void flash_printqry (flash_info_tcfiptr_t cptr;int x, y; -for (x =0 ; x <0x40 ; x +=16 / info->portwidth) { +for (x =0 ; x <0x40 ; x +=16U / info->portwidth) { cptr.cp =flash_make_addr (info, sect, x +FLASH_OFFSET_CFI_RESP );
@@ -807,7 +807,7 @@ static void flash_make_cmd (flash_info_t#else for (i = 1; i <= info->portwidth; i++)#endif - *cp++ = (i % info->chipwidth) ?'\0' : cmd; + *cp++ = (i & (info->chipwidth -1 )) ?'\0' : cmd; }/*
PATCH 1/1 Fix ARM compilation error
Quoted 2 lines · In message <[email protected]> you wrote:
"For historical reasons", the ARM community uses toolchains built
Ummm... not all of the ARM community. Or why are you excluding all ELDK users? ;-)
Quoted 2 lines
Fixed compilation for ARM when using a (standard) Hard-FP toolchain Patch by Anders Larsen, 07 Oct 2005
Added, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Brontosaurus Principle: Organizations can grow faster than their
brains can manage them in relation to their environment and to their
own physiology: when this occurs, they are an endangered species.
- Thomas K. Connellan