2 * Semihosting Tests - ARM Helper
4 * Copyright (c) 2019, 2024
5 * Written by Alex Bennée <alex.bennee@linaro.org>
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 uintptr_t __semi_call(uintptr_t type
, uintptr_t arg0
)
12 register uintptr_t t
asm("r0") = type
;
13 register uintptr_t a0
asm("r1") = arg0
;
15 # define SVC "svc 0xab"
17 # define SVC "svc 0x123456"