diff options
Diffstat (limited to 'sys/include/sbi.h')
-rw-r--r-- | sys/include/sbi.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/include/sbi.h b/sys/include/sbi.h new file mode 100644 index 0000000..0dbcd02 --- /dev/null +++ b/sys/include/sbi.h @@ -0,0 +1,16 @@ +#ifndef _SBICALL_H +#define _SBICALL_H + +struct sbiret { + long err; + long val; +}; + +struct sbiret sbi_ecall(int _eid, int _fid, unsigned long _a0, unsigned long _a1, + unsigned long _a2, unsigned long _a3, unsigned long _a4, unsigned long _a5); + +void sbi_console_putchar(int c); +void sbi_shutdown(void); + +#endif /* _SBICALL_H */ + |