All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] printf and R9 in ARM architecture
Date: Tue, 20 Jan 2015 11:56:52 +0100	[thread overview]
Message-ID: <201501201156.52291.marex@denx.de> (raw)
In-Reply-To: <CAG3POBk3kjcqcE5-HF7xwFJfufrCnbvPuhLs9A=kiYC0SyEddA@mail.gmail.com>

On Tuesday, January 20, 2015 at 07:12:35 AM, Da Shi Cao wrote:
> In standalone applications, it seems that the execution of printf
> function in U-Boot is dependent on the value of register R9, which is
> setup in app_startup. But r9 can be used by your program at the
> decision of gcc compilation which is not aware of this dependence.
> This is especially the case if +O2 is used!

+CC the experts who probably broke it ;-)

Shouldn't you compile your standalone application with something like -ffixed-r9 
?

Best regards,
Marek Vasut

      parent reply	other threads:[~2015-01-20 10:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20  6:12 [U-Boot] printf and R9 in ARM architecture Da Shi Cao
2015-01-20  9:37 ` Albert ARIBAUD
2015-01-20 11:34   ` Da Shi Cao
2015-01-20 12:20     ` Albert ARIBAUD
2015-01-20 10:56 ` Marek Vasut [this message]

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=201501201156.52291.marex@denx.de \
    --to=marex@denx.de \
    --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.