[U-Boot-Users] [PATCH 1/2] Move 64bit division from avr32 to generic lib

Håvard Skinnemoen hskinnemoen at gmail.com
Thu Aug 2 19:40:18 CEST 2007


On 8/2/07, Dirk Behme <dirk.behme at googlemail.com> wrote:
>
> 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.
>
> Signed-off-by: Dirk Behme <dirk.behme at gmail.com>

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?

diff --git a/cpu/at32ap/interrupts.c b/cpu/at32ap/interrupts.c
index c9e0499..bef1f30 100644
--- a/cpu/at32ap/interrupts.c
+++ b/cpu/at32ap/interrupts.c
@@ -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>




More information about the U-Boot mailing list