From: Patrice Vilchez <patrice.vilchez@rfo.atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] EABI problem
Date: Thu, 05 Jul 2007 19:11:44 +0200 [thread overview]
Message-ID: <468D2650.10603@rfo.atmel.com> (raw)
Hello,
I am quite new on this mailing list.
I have tried to build u-boot with the last EABI toolchain from
codesourcery (arm-2007q1-10 version).
It seems that in the file "driver/nand/nand_util.c" there is some 64
bits division which causes a crash during the link process.
bye,
Patrice.
-----8<
From: Patrice Vilchez <patrice.vilchez@rfo.atmel.com>
Remove 64 bits division into nand driver to compile with an EABI toolchain
Signed-off-by: Patrice Vilchez <patrice.vilchez@rfo.atmel.com>
---
driver/nand/nand_util.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff -Nru u-boot-1.2.0.orig/drivers/nand/nand_util.c
u-boot-1.2.0.new/drivers/nand/nand_util.c
--- u-boot-1.2.0.orig/drivers/nand/nand_util.c 2007-01-07
00:13:11.000000000 +0100
+++ u-boot-1.2.0.new/drivers/nand/nand_util.c 2007-07-05
19:03:03.000000000 +0200
@@ -209,9 +209,9 @@
if (!opts->quiet) {
int percent = (int)
- ((unsigned long long)
+ ((unsigned long)
(erase.addr+meminfo->erasesize-opts->offset)
- * 100 / erase_length);
+ / erase_length) * 100;
/* output progress message only at whole percent
* steps to reduce the number of messages printed
@@ -476,9 +476,9 @@
if (!opts->quiet) {
int percent = (int)
- ((unsigned long long)
- (opts->length-imglen) * 100
- / opts->length);
+ ((unsigned long)
+ (opts->length-imglen)
+ / opts->length) * 100;
/* output progress message only at whole percent
* steps to reduce the number of messages printed
* on (slow) serial consoles
@@ -652,9 +652,9 @@
if (!opts->quiet) {
int percent = (int)
- ((unsigned long long)
- (opts->length-imglen) * 100
- / opts->length);
+ ((unsigned long)
+ (opts->length-imglen)
+ / opts->length) * 100;
/* output progress message only at whole percent
* steps to reduce the number of messages printed
* on (slow) serial consoles
next reply other threads:[~2007-07-05 17:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-05 17:11 Patrice Vilchez [this message]
2007-07-06 13:29 ` [U-Boot-Users] EABI problem Peter Pearse
2007-07-06 13:45 ` Patrice Vilchez
2007-07-06 14:02 ` Philip Balister
2007-07-06 14:15 ` Patrice Vilchez
2007-07-06 14:22 ` Philip Balister
2007-07-06 14:33 ` Patrice Vilchez
-- strict thread matches above, loose matches on Subject: below --
2007-11-01 16:02 [U-Boot-Users] EABI Problem Russ Ferriday
2007-11-02 15:37 ` Johannes Stezenbach
2007-11-05 16:18 ` Johannes Stezenbach
2007-11-05 19:26 ` Wolfgang Denk
2007-11-05 21:25 ` Johannes Stezenbach
2007-11-06 5:31 ` Stefan Roese
2007-11-06 7:33 ` Wolfgang Denk
2007-11-06 13:30 ` Philip Balister
2007-11-16 20:39 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=468D2650.10603@rfo.atmel.com \
--to=patrice.vilchez@rfo.atmel.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.