[U-Boot] [PATCH] arm: add _lshrdi3.S

Heiko Schocher hs at denx.de
Thu Jul 23 14:16:49 CEST 2009


Hello Wolfgang,

Wolfgang Denk wrote:
> In message <4A684908.8070402 at invitel.hu> you wrote:
>> Signed-off-by: Heiko Schocher <hs at denx.de>
>> ---
>>  lib_arm/Makefile   |    1 +
>>  lib_arm/_lshrdi3.S |   46 ++++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 47 insertions(+), 0 deletions(-)
>>  create mode 100644 lib_arm/_lshrdi3.S
> 
> Why should we add this? Where it is needed?

This is needed for the upcoming suen3 support.
Maybe I sould have written this in the commit
message?

This board uses NAND, and if I compile it, I get this
errors:

[hs at pollux u-boot]$ make mrproper
[hs at pollux u-boot]$ make suen3_config
Configuring for suen3 board...
[hs at pollux u-boot]$ make USE_PRIVATE_LIBGCC=yes -s all
drivers/mtd/nand/libnand.a(nand_base.o): In function `nand_do_write_oob':
/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_base.c:2019: undefined reference to `__lshrdi3'
drivers/mtd/nand/libnand.a(nand_base.o): In function `nand_erase_nand':
/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_base.c:2199: undefined reference to `__lshrdi3'
/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_base.c:2198: undefined reference to `__lshrdi3'
drivers/mtd/nand/libnand.a(nand_base.o): In function `nand_do_read_oob':
/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_base.c:1519: undefined reference to `__lshrdi3'
drivers/mtd/nand/libnand.a(nand_bbt.o): In function `search_bbt':
/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_bbt.c:482: undefined reference to `__lshrdi3'
drivers/mtd/nand/libnand.a(nand_bbt.o):/home/hs/keymile/suen3/u-boot/drivers/mtd/nand/nand_bbt.c:413: more undefined references to `__lshrdi3' follow
make: *** [u-boot] Fehler 1
[hs at pollux u-boot]$

above patch fixes this. And I thought better to post such
a fix immediately ...

bye
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list