Server IP : 13.213.54.232 / Your IP : 216.73.217.11 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ip-172-31-17-110 6.8.0-1029-aws #31~22.04.1-Ubuntu SMP Thu Apr 24 21:16:18 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 7.1.33-67+ubuntu22.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/modules/6.8.0-1029-aws/build/arch/xtensa/platforms/iss/include/platform/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ /* Copyright (C) 2021 Cadence Design Systems Inc. */ #ifndef _XTENSA_PLATFORM_ISS_SIMCALL_ISS_H #define _XTENSA_PLATFORM_ISS_SIMCALL_ISS_H /* * System call like services offered by the simulator host. */ #define SYS_nop 0 /* unused */ #define SYS_exit 1 /*x*/ #define SYS_fork 2 #define SYS_read 3 /*x*/ #define SYS_write 4 /*x*/ #define SYS_open 5 /*x*/ #define SYS_close 6 /*x*/ #define SYS_rename 7 /*x 38 - waitpid */ #define SYS_creat 8 /*x*/ #define SYS_link 9 /*x (not implemented on WIN32) */ #define SYS_unlink 10 /*x*/ #define SYS_execv 11 /* n/a - execve */ #define SYS_execve 12 /* 11 - chdir */ #define SYS_pipe 13 /* 42 - time */ #define SYS_stat 14 /* 106 - mknod */ #define SYS_chmod 15 #define SYS_chown 16 /* 202 - lchown */ #define SYS_utime 17 /* 30 - break */ #define SYS_wait 18 /* n/a - oldstat */ #define SYS_lseek 19 /*x*/ #define SYS_getpid 20 #define SYS_isatty 21 /* n/a - mount */ #define SYS_fstat 22 /* 108 - oldumount */ #define SYS_time 23 /* 13 - setuid */ #define SYS_gettimeofday 24 /*x 78 - getuid (not implemented on WIN32) */ #define SYS_times 25 /*X 43 - stime (Xtensa-specific implementation) */ #define SYS_socket 26 #define SYS_sendto 27 #define SYS_recvfrom 28 #define SYS_select_one 29 /* not compatible select, one file descriptor at the time */ #define SYS_bind 30 #define SYS_ioctl 31 #define SYS_iss_argc 1000 /* returns value of argc */ #define SYS_iss_argv_size 1001 /* bytes needed for argv & arg strings */ #define SYS_iss_set_argv 1002 /* saves argv & arg strings at given addr */ /* * SYS_select_one specifiers */ #define XTISS_SELECT_ONE_READ 1 #define XTISS_SELECT_ONE_WRITE 2 #define XTISS_SELECT_ONE_EXCEPT 3 static int errno; static inline int __simc(int a, int b, int c, int d) { register int a1 asm("a2") = a; register int b1 asm("a3") = b; register int c1 asm("a4") = c; register int d1 asm("a5") = d; __asm__ __volatile__ ( "simcall\n" : "+r"(a1), "+r"(b1) : "r"(c1), "r"(d1) : "memory"); errno = b1; return a1; } #endif /* _XTENSA_PLATFORM_ISS_SIMCALL_ISS_H */