forked from mirror/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
657 B
C
29 lines
657 B
C
/*
|
|
* Nios2 semihosting interface.
|
|
*
|
|
* Copyright Linaro Ltd 2022
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef SEMICALL_H
|
|
#define SEMICALL_H
|
|
|
|
#define HOSTED_EXIT 0
|
|
#define HOSTED_INIT_SIM 1
|
|
#define HOSTED_OPEN 2
|
|
#define HOSTED_CLOSE 3
|
|
#define HOSTED_READ 4
|
|
#define HOSTED_WRITE 5
|
|
#define HOSTED_LSEEK 6
|
|
#define HOSTED_RENAME 7
|
|
#define HOSTED_UNLINK 8
|
|
#define HOSTED_STAT 9
|
|
#define HOSTED_FSTAT 10
|
|
#define HOSTED_GETTIMEOFDAY 11
|
|
#define HOSTED_ISATTY 12
|
|
#define HOSTED_SYSTEM 13
|
|
|
|
#define semihosting_call break 1
|
|
|
|
#endif /* SEMICALL_H */
|