2 * Semihosting Tests - RiscV64 Helper
5 * Written by Alex Bennée <alex.bennee@linaro.org>
7 * SPDX-License-Identifier: GPL-3.0-or-later
10 uintptr_t __semi_call(uintptr_t type
, uintptr_t arg0
)
12 register uintptr_t t
asm("a0") = type
;
13 register uintptr_t a0
asm("a1") = arg0
;
14 asm(".option norvc\n\t"
16 "slli zero, zero, 0x1f\n\t"
18 "srai zero, zero, 0x7\n\t"