1 /* 2 * Nios2 semihosting interface. 3 * 4 * Copyright Linaro Ltd 2022 5 * SPDX-License-Identifier: GPL-2.0-or-later 6 */ 7 8 #ifndef SEMICALL_H 9 #define SEMICALL_H 10 11 #define HOSTED_EXIT 0 12 #define HOSTED_INIT_SIM 1 13 #define HOSTED_OPEN 2 14 #define HOSTED_CLOSE 3 15 #define HOSTED_READ 4 16 #define HOSTED_WRITE 5 17 #define HOSTED_LSEEK 6 18 #define HOSTED_RENAME 7 19 #define HOSTED_UNLINK 8 20 #define HOSTED_STAT 9 21 #define HOSTED_FSTAT 10 22 #define HOSTED_GETTIMEOFDAY 11 23 #define HOSTED_ISATTY 12 24 #define HOSTED_SYSTEM 13 25 26 #define semihosting_call break 1 27 28 #endif /* SEMICALL_H */ 29