aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/include/sbi.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-08-17 21:47:38 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-08-17 21:49:16 +0300
commit565724db3b73ee67fa996dab511dc52df586cee1 (patch)
treed3bd77006c2c57aa961f85c4fc677bd72f6251ae /arch/riscv/include/sbi.h
downloadkmi-565724db3b73ee67fa996dab511dc52df586cee1.tar.gz
kmi-565724db3b73ee67fa996dab511dc52df586cee1.zip
Garbage
Diffstat (limited to 'arch/riscv/include/sbi.h')
-rw-r--r--arch/riscv/include/sbi.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/riscv/include/sbi.h b/arch/riscv/include/sbi.h
new file mode 100644
index 0000000..609849d
--- /dev/null
+++ b/arch/riscv/include/sbi.h
@@ -0,0 +1,12 @@
+#ifndef APOS_RISCV_SBI_H
+
+struct sbiret {
+ long error;
+ long value;
+};
+
+struct sbiret sbi_ecall(int ext, int fid,
+ unsigned long arg0, unsigned long arg1, unsigned long arg2,
+ unsigned long arg3, unsigned long arg4, unsigned long arg5);
+
+#endif /* APOS_RISCV_SBI_H */