All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christophe Lyon <christophe.lyon@st.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] ARM: semi-hosting support for stderr
Date: Thu, 19 Aug 2010 17:11:16 +0200	[thread overview]
Message-ID: <4C6D4994.2090209@st.com> (raw)
In-Reply-To: <4C24CECA.1040308@st.com>

Ping?

On 25.06.2010 17:44, Christophe LYON wrote:
> Hello,
>
> I propose this small patch so that ARM semi-hosting handles stderr as
> expected when linking with Newlib/libgloss.
>
> diff --git a/arm-semi.c b/arm-semi.c
> index 9549e6c..6874036 100644
> --- a/arm-semi.c
> +++ b/arm-semi.c
> @@ -211,8 +211,11 @@ uint32_t do_arm_semihosting(CPUState *env)
>            if (strcmp(s, ":tt") == 0) {
>                if (ARG(1)<  4)
>                    return STDIN_FILENO;
> -            else
> +            else if (ARG(1) == 4)
>                    return STDOUT_FILENO;
> +           else
> +             return STDERR_FILENO; /* See newlib/libgloss
> +                                      implementation.  */
>            }
>            if (use_gdb_syscalls()) {
>                gdb_do_syscall(arm_semi_cb, "open,%s,%x,1a4", ARG(0),
>
>
> Christophe
>
>

  reply	other threads:[~2010-08-19 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 15:44 [Qemu-devel] [PATCH] ARM: semi-hosting support for stderr Christophe LYON
2010-08-19 15:11 ` Christophe Lyon [this message]
2010-11-14 17:50   ` Peter Maydell
2010-11-15 12:27     ` Christophe Lyon

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=4C6D4994.2090209@st.com \
    --to=christophe.lyon@st.com \
    --cc=qemu-devel@nongnu.org \
    /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.