From 25108684fe235d4296c3cbc480298df209682586 Mon Sep 17 00:00:00 2001 From: stefan Date: Tue, 4 Apr 2023 06:01:50 +0000 Subject: build system and some other stuff --- sys/include/sbi.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sys/include/sbi.h (limited to 'sys/include/sbi.h') 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 */ + -- cgit v1.2.3