2 * Semihosting Console Test
4 * Copyright (c) 2019 Linaro Ltd
6 * SPDX-License-Identifier: GPL-2.0-or-later
14 uintptr_t __semi_call(uintptr_t type
, uintptr_t arg0
)
16 register uintptr_t t
asm("r0") = type
;
17 register uintptr_t a0
asm("r1") = arg0
;
19 # define SVC "svc 0xab"
21 # define SVC "svc 0x123456"
33 ml_printf("Semihosting Console Test\n");
34 ml_printf("hit X to exit:");
37 c
= __semi_call(SYS_READC
, 0);