mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 0/6] semihosting: extend support for ARM64, console
Date: Tue, 11 Jun 2024 08:59:17 +0200	[thread overview]
Message-ID: <20240611065923.2900168-1-a.fatoum@pengutronix.de> (raw)

So far, we limited semihosting support to 32-bit ARM, but it's also
usable on ARM64 and even RISC-V.

This series does the first step by making it compile for ARM64 and also
adds DEBUG_LL and console drivers.

Ahmad Fatoum (6):
  ARM: lib32: semihosting: prepare for more general use
  firmware: semihosting: add ARMv8-A semihosting support
  firmware: semihosting: don't return error code from writec/write0
  firmware: semihosting: translate return values in wrappers
  ARM: semihosting: add DEBUG_LL implementation
  serial: add semihosting console

 arch/arm/Kconfig                              |  2 +-
 arch/arm/cpu/Makefile                         |  2 +
 .../semihosting-trap_32.S}                    |  2 +-
 arch/arm/cpu/semihosting-trap_64.S            | 10 ++
 arch/arm/include/asm/debug_ll.h               |  4 +
 arch/arm/include/asm/semihosting.h            | 47 ++++++---
 arch/arm/lib32/Makefile                       |  1 -
 common/Kconfig.debug_ll                       | 13 +++
 drivers/firmware/Kconfig                      |  4 +
 drivers/firmware/Makefile                     |  1 +
 .../lib32 => drivers/firmware}/semihosting.c  | 99 ++++++++++---------
 drivers/serial/Kconfig                        |  8 ++
 drivers/serial/Makefile                       |  1 +
 drivers/serial/serial_semihosting.c           | 44 +++++++++
 fs/Kconfig                                    |  2 +-
 fs/smhfs.c                                    | 37 +++----
 include/asm-generic/semihosting.h             | 23 +++++
 include/debug_ll/semihosting.h                | 15 +++
 18 files changed, 227 insertions(+), 88 deletions(-)
 rename arch/arm/{lib32/semihosting-trap.S => cpu/semihosting-trap_32.S} (84%)
 create mode 100644 arch/arm/cpu/semihosting-trap_64.S
 rename {arch/arm/lib32 => drivers/firmware}/semihosting.c (64%)
 create mode 100644 drivers/serial/serial_semihosting.c
 create mode 100644 include/asm-generic/semihosting.h
 create mode 100644 include/debug_ll/semihosting.h

-- 
2.39.2




             reply	other threads:[~2024-06-11  7:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-11  6:59 Ahmad Fatoum [this message]
2024-06-11  6:59 ` [PATCH 1/6] ARM: lib32: semihosting: prepare for more general use Ahmad Fatoum
2024-06-11  6:59 ` [PATCH 2/6] firmware: semihosting: add ARMv8-A semihosting support Ahmad Fatoum
2024-06-11  6:59 ` [PATCH 3/6] firmware: semihosting: don't return error code from writec/write0 Ahmad Fatoum
2024-06-11  6:59 ` [PATCH 4/6] firmware: semihosting: translate return values in wrappers Ahmad Fatoum
2024-06-11  6:59 ` [PATCH 5/6] ARM: semihosting: add DEBUG_LL implementation Ahmad Fatoum
2024-06-11  6:59 ` [PATCH 6/6] serial: add semihosting console Ahmad Fatoum
2024-06-13  7:18 ` [PATCH 0/6] semihosting: extend support for ARM64, console Sascha Hauer

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=20240611065923.2900168-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox