2 * linux-user semihosting checks
5 * Written by Alex Bennée <alex.bennee@linaro.org>
7 * SPDX-License-Identifier: GPL-3.0-or-later
13 int main(int argc
, char *argv
[argc
])
16 uintptr_t exit_code
= 0x20026;
18 uintptr_t exit_block
[2] = {0x20026, 0};
19 uintptr_t exit_code
= (uintptr_t) &exit_block
;
22 __semi_call(SYS_WRITE0
, (uintptr_t) "Hello World");
23 __semi_call(SYS_REPORTEXC
, exit_code
);
24 /* if we get here we failed */