Skip to contentSkip to conversation

Move 64bit division from avr32 to generic lib

PATCH New Dirk Behme 2 participants 2 messages Aug 2, 2007

lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/2 Move 64bit division from avr32 to generic lib

Move the 64bit division from lib_avr32 to lib_generic. With this, all boards can do_div/__div64_32 if needed, not only avr one. Code is put to lib_generic, so no larger memory footprint if not used. No code modifications. Thanks for proposal by H?vard Skinnemoen.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 01_div64_generic_patch.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20070802/bb15af3c/attachment.txt

#1 lore raw

PATCH 1/2 Move 64bit division from avr32 to generic lib

Quoted 7 lines · Dirk Behme

Move the 64bit division from lib_avr32 to lib_generic. With this, all boards can do_div/__div64_32 if needed, not only avr one. Code is put to lib_generic, so no larger memory footprint if not used. No code modifications. Thanks for proposal by H?vard Skinnemoen.

Looks good, although I'm afraid it will break avr32 as it still expects to find div64.h under asm/. Could you include this change as well to avoid any breakage when it is merged?

cpu/at32ap/interrupts.c +1 -1
index c9e0499..bef1f30 100644
@@ -20,8 +20,8 @@
  * MA 02111-1307 USA
  */
 #include <common.h>
+#include <div64.h>
 
-#include <asm/div64.h>
 #include <asm/errno.h>
 #include <asm/io.h>
 #include <asm/processor.h>