Move 64bit division from avr32 to generic lib
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
PATCH 1/2 Move 64bit division from avr32 to generic lib
Quoted 7 lines · Dirk Behme
Move the 64bit division from
lib_avr32tolib_generic. With this, all boards can do_div/__div64_32 if needed, not only avr one. Code is put tolib_generic, so no larger memory footprint if not used. No code modifications. Thanks for proposal by H?vard Skinnemoen.Signed-off-by Dirk Behme <[email protected]>
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
@@ -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>