40#ifndef EFX_SEMIHOSTING_H
41#define EFX_SEMIHOSTING_H
51#define RISCV_SEMIHOSTING_CALL_NUMBER 7
84static inline int __attribute__ ((always_inline)) call_host(
int reason,
void* arg) {
85 register int value
asm (
"a0") = reason;
86 register void* ptr
asm (
"a1") = arg;
95 " slli x0, x0, 0x1f \n"
97 " srai x0, x0, %[swi] \n"
107static void sh_write0(
char* buf)
113static void sh_writec(
char c)
119static char sh_readc(
void)
Board Support Package API definitions.
#define RISCV_SEMIHOSTING_CALL_NUMBER
semihosting_operation_numbers
@ SEMIHOSTING_SYS_TICKFREQ
@ SEMIHOSTING_SYS_ISERROR
@ SEMIHOSTING_SYS_GET_CMDLINE
@ SEMIHOSTING_SYS_EXIT_EXTENDED
@ SEMIHOSTING_SYS_HEAPINFO
@ SEMIHOSTING_SYS_ELAPSED