All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/4] arch: arm/xen: add putc() for debugging
Date: Thu, 15 Oct 2020 06:52:32 +0000	[thread overview]
Message-ID: <DB6PR0402MB27602ABEF8CBE905DA237C1F88020@DB6PR0402MB2760.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20201015042516.41197-3-takahiro.akashi@linaro.org>

> Subject: [PATCH 2/4] arch: arm/xen: add putc() for debugging
> 
> This new function, xen_debug_putc(), is intended to be used to enable
> CONFIG_DEBUG_UART on xen guest.
> 
> Please note that the underlying functionality in Xen is available only when Xen
> is configured with !NDEBUG but is much simpler than a generic
> HYPERVISOR_console_io().
> 
> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
> ---
>  arch/arm/include/asm/xen/hypercall.h | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/include/asm/xen/hypercall.h
> b/arch/arm/include/asm/xen/hypercall.h
> index a4fd077079a9..121ccfcc608f 100644
> --- a/arch/arm/include/asm/xen/hypercall.h
> +++ b/arch/arm/include/asm/xen/hypercall.h
> @@ -19,4 +19,10 @@ int HYPERVISOR_sched_op(int cmd, void *arg);  int
> HYPERVISOR_event_channel_op(int cmd, void *arg);  unsigned long
> HYPERVISOR_hvm_op(int op, void *arg);  int
> HYPERVISOR_memory_op(unsigned int cmd, void *arg);
> +
> +static inline void xen_debug_putc(int c) {
> +	register int v __asm__ ("x0") = c;
> +	__asm__ __volatile__("hvc 0xfffe" : "=r" (v) : "0" (v)); }
>  #endif /* _ASM_ARM_XEN_HYPERCALL_H */

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> --
> 2.28.0

  reply	other threads:[~2020-10-15  6:52 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15  4:25 [PATCH 0/4] xen: improve console outputs AKASHI Takahiro
2020-10-15  4:25 ` [PATCH 1/4] serial: serial_xen: print U-Boot banner and others AKASHI Takahiro
2020-10-15  6:51   ` Peng Fan
2020-10-22  9:18   ` Anastasiia Lukianenko
2020-10-22  9:49     ` takahiro.akashi at linaro.org
2020-10-23  8:58       ` Anastasiia Lukianenko
2020-10-23  0:30   ` Tom Rini
2020-10-15  4:25 ` [PATCH 2/4] arch: arm/xen: add putc() for debugging AKASHI Takahiro
2020-10-15  6:52   ` Peng Fan [this message]
2020-10-23  0:31   ` Tom Rini
2020-10-15  4:25 ` [PATCH 3/4] xen: add definitions for console_io AKASHI Takahiro
2020-10-15  6:52   ` Peng Fan
2020-10-23  0:31   ` Tom Rini
2020-10-15  4:25 ` [PATCH 4/4] serial: serial_xen: add DEBUG_UART support AKASHI Takahiro
2020-10-15  6:50   ` Peng Fan
2020-10-22  9:19   ` Anastasiia Lukianenko
2020-10-22  9:53     ` takahiro.akashi at linaro.org
2020-10-23  8:50       ` Anastasiia Lukianenko
2020-10-26  5:58         ` takahiro.akashi at linaro.org
2020-10-26  6:18           ` Oleksandr Andrushchenko
2020-10-26  6:50             ` takahiro.akashi at linaro.org
2020-10-26  6:54               ` Oleksandr Andrushchenko
2020-10-26  7:10                 ` takahiro.akashi at linaro.org
2020-10-26  7:30                   ` Oleksandr Andrushchenko
2020-10-26  8:03                     ` takahiro.akashi at linaro.org
2020-10-26  8:19                       ` Oleksandr Andrushchenko
2020-10-26  7:16               ` Oleksandr Andrushchenko
2020-10-23  8:53       ` Anastasiia Lukianenko
2020-10-26  6:02         ` takahiro.akashi at linaro.org
2020-10-26  6:12           ` Oleksandr Andrushchenko
2020-10-23  0:31   ` Tom Rini
2020-10-23  9:22     ` Anastasiia Lukianenko
2020-10-23 12:34       ` Tom Rini
2020-10-23 13:06         ` Anastasiia Lukianenko
2020-10-23 13:18           ` Tom Rini

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=DB6PR0402MB27602ABEF8CBE905DA237C1F88020@DB6PR0402MB2760.eurprd04.prod.outlook.com \
    --to=peng.fan@nxp.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.