All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] ARM missing __udivdi3 in lib_arm or fix 64bit division in nand_util.c?
@ 2007-07-31  5:38 Dirk Behme
  2007-07-31  8:17 ` Håvard Skinnemoen
  0 siblings, 1 reply; 7+ messages in thread
From: Dirk Behme @ 2007-07-31  5:38 UTC (permalink / raw)
  To: u-boot


On ARM (don't know for other architectures ;) ) compiling and linking 
nand_util.c results on recent git in

~/uboot/drivers/nand/nand_util.c:657: undefined reference to `__udivdi3'
drivers/nand/libnand.a(nand_util.o): In function `nand_write_opts':
~/uboot/drivers/nand/nand_util.c:481: undefined reference to `__udivdi3'
drivers/nand/libnand.a(nand_util.o): In function `nand_erase_opts':
~/uboot/drivers/nand/nand_util.c:214: undefined reference to `__udivdi3'

In lib_arm __udivsi3 and friends are available, but __udivdi3 is 
missing. There is a fix by modifying nand_util.c

http://sourceforge.net/mailarchive/forum.php?thread_name=468D2650.10603%40rfo.atmel.com&forum_name=u-boot-users

to not do any 64bit divisions any more. Now, I wonder what is the 
correct fix for this? Should lib_arm provide __udivdi3 as well or 
should nand_util.c be fixed as in above link to avoid 64bit divisions?

Best regards

Dirk

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-01 20:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31  5:38 [U-Boot-Users] ARM missing __udivdi3 in lib_arm or fix 64bit division in nand_util.c? Dirk Behme
2007-07-31  8:17 ` Håvard Skinnemoen
2007-07-31 19:26   ` Dirk Behme
2007-07-31 20:27     ` Wolfgang Denk
2007-08-01 17:55       ` Dirk Behme
2007-08-01 20:14         ` Wolfgang Denk
2007-08-01 20:15         ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.