* [U-Boot-Users] [PATCH 1/2] Move 64bit division from avr32 to generic lib
@ 2007-08-02 15:41 Dirk Behme
2007-08-02 17:40 ` Håvard Skinnemoen
0 siblings, 1 reply; 2+ messages in thread
From: Dirk Behme @ 2007-08-02 15:41 UTC (permalink / raw)
To: u-boot
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@gmail.com>
-------------- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH 1/2] Move 64bit division from avr32 to generic lib
2007-08-02 15:41 [U-Boot-Users] [PATCH 1/2] Move 64bit division from avr32 to generic lib Dirk Behme
@ 2007-08-02 17:40 ` Håvard Skinnemoen
0 siblings, 0 replies; 2+ messages in thread
From: Håvard Skinnemoen @ 2007-08-02 17:40 UTC (permalink / raw)
To: u-boot
On 8/2/07, Dirk Behme <dirk.behme@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@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>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-02 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 15:41 [U-Boot-Users] [PATCH 1/2] Move 64bit division from avr32 to generic lib Dirk Behme
2007-08-02 17:40 ` Håvard Skinnemoen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox