Skip to content

Conversation

@pttuan
Copy link

@pttuan pttuan commented Oct 30, 2025

Introduces a semi-hosting library adhering to the ARM protocol, enabling communication with a host computer via a debugger.

A complete documentation of the protocol is available at the https://github.com/ARM-software/abi-aa/blob/main/semihosting/semihosting.rst

RISC-V binary interface documentation is available at the https://github.com/riscv-non-isa/riscv-semihosting/blob/main/riscv-semihosting.adoc

This library incorporates code from ArmPkg/Library/SemihostLib with some cleanup and clarification.

  • Breaking change?
  • Impacts security?
  • Includes tests?

How This Was Tested

Tested on RISC-V with Console and Simple File System on host environment.

Integration Instructions

@pttuan pttuan marked this pull request as draft October 30, 2025 22:41
@pttuan pttuan changed the title [Draft] UefiCpuPkg: Add ArmCompatSemiHostingLib UefiCpuPkg: Add ArmCompatSemiHostingLib Oct 30, 2025
@pttuan pttuan force-pushed the tphan/riscv_semihosting branch from 0745c76 to 972ee5a Compare October 30, 2025 22:42
@pttuan pttuan changed the title UefiCpuPkg: Add ArmCompatSemiHostingLib MdePkg: Add ArmCompatSemiHostingLib Oct 30, 2025
@pttuan pttuan force-pushed the tphan/riscv_semihosting branch 2 times, most recently from b792f46 to 7d0717c Compare November 3, 2025 19:25
Introduces a semi-hosting library adhering to the ARM protocol,
enabling communication with a host computer via a debugger.

A complete documentation of the protocol is available at the
https://github.com/ARM-software/abi-aa/blob/main/semihosting/semihosting.rst

RISC-V binary interface documentation is available at the
https://github.com/riscv-non-isa/riscv-semihosting/blob/main/riscv-semihosting.adoc

Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
@pttuan pttuan force-pushed the tphan/riscv_semihosting branch from 7d0717c to 00c1a31 Compare November 4, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants