Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Rolf Eike Beer <eike-kernel@sf-tec.de>
To: linux-parisc@vger.kernel.org, Helge Deller <deller@gmx.de>
Cc: James Bottomley <James.Bottomley@hansenpartnership.com>,
	John David Anglin <dave.anglin@bell.net>,
	Sven Schnelle <svens@stackframe.org>
Subject: Re: [PATCH 2/2] parisc: Provide a trivial PDC-based io_module for kgdb
Date: Thu, 06 Jan 2022 11:04:40 +0100	[thread overview]
Message-ID: <1881841.PYKUYFuaPT@daneel.sf-tec.de> (raw)
In-Reply-To: <20220105214552.590606-2-deller@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

Am Mittwoch, 5. Januar 2022, 22:45:52 CET schrieb Helge Deller:
> Add a simple keyboard driver for usage of PDC I/O functions
> with kgdb. This driver makes it possible to use KGDB with QEMU.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> ---
>  arch/parisc/kernel/toc.c | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
> 
> diff --git a/arch/parisc/kernel/toc.c b/arch/parisc/kernel/toc.c
> index 18327611cf8f..dfe7cccc086f 100644
> --- a/arch/parisc/kernel/toc.c
> +++ b/arch/parisc/kernel/toc.c
> @@ -109,3 +109,30 @@ static __init int setup_toc(void)
>  	return 0;
>  }
>  early_initcall(setup_toc);
> +
> +

double newline

> +#ifdef CONFIG_KGDB_KDB
> +/* read a character, return -1 if no char can be polled. */
> +static int kgdbpdc_read_char(void)
> +{
> +	return pdc_iodc_getc();
> +}
> +
> +static void kgdbpdc_write_char(u8 chr)
> +{
> +	/* no need to print char. kdb will do it. */

kgdb?

Eike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2022-01-06 10:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05 21:45 [PATCH 1/2] Subject: parisc: Fix pdc_toc_pim_11 and pdc_toc_pim_20 structs Helge Deller
2022-01-05 21:45 ` [PATCH 2/2] parisc: Provide a trivial PDC-based io_module for kgdb Helge Deller
2022-01-06 10:04   ` Rolf Eike Beer [this message]
2022-01-06 10:32     ` Helge Deller

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=1881841.PYKUYFuaPT@daneel.sf-tec.de \
    --to=eike-kernel@sf-tec.de \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=dave.anglin@bell.net \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.org \
    --cc=svens@stackframe.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox