From: Kautuk Consul <kconsul@ventanamicro.com>
To: opensbi@lists.infradead.org
Subject: [PATCH v3 0/1] Add semihosting support in opensbi
Date: Mon, 12 Sep 2022 16:22:52 +0530 [thread overview]
Message-ID: <20220912105253.2342504-1-kconsul@ventanamicro.com> (raw)
Semihosting is a mechanism that enables code running on
a target to communicate and use the Input/Output
facilities on a host computer that is running a debugger.
This patchset adds support for semihosting in opensbi
for RISCV64 targets.
CHANGES since v2:
- return -1 from semihosting_getc in case of read character
failure from semihosting console.
- rename infd to semihosting_infd.
Kautuk Consul (1):
lib: utils/serial: add semihosting support
include/sbi_utils/serial/semihosting.h | 47 +++++++
lib/utils/serial/Kconfig | 4 +
lib/utils/serial/objects.mk | 1 +
lib/utils/serial/semihosting.c | 177 +++++++++++++++++++++++++
platform/generic/configs/defconfig | 1 +
platform/generic/platform.c | 11 +-
6 files changed, 240 insertions(+), 1 deletion(-)
create mode 100644 include/sbi_utils/serial/semihosting.h
create mode 100644 lib/utils/serial/semihosting.c
--
2.34.1
next reply other threads:[~2022-09-12 10:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 10:52 Kautuk Consul [this message]
2022-09-12 10:52 ` [PATCH v3] lib: utils/serial: add semihosting support Kautuk Consul
2022-09-13 15:41 ` Anup Patel
2022-09-14 4:35 ` Kautuk Consul
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=20220912105253.2342504-1-kconsul@ventanamicro.com \
--to=kconsul@ventanamicro.com \
--cc=opensbi@lists.infradead.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.