aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-24 23:28:37 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-24 23:28:37 +0300
commit018624dd5b1692b88f7b2e85652ea7b898043b6d (patch)
tree0aa018640dc6bd5ebca7120df95dca4269be61d6 /include/arch/proc.h
parent4123ec776d3769728e1e12379887da34c12ee8f8 (diff)
downloadkmi-018624dd5b1692b88f7b2e85652ea7b898043b6d.tar.gz
kmi-018624dd5b1692b88f7b2e85652ea7b898043b6d.zip
make process loading more generic
Diffstat (limited to 'include/arch/proc.h')
-rw-r--r--include/arch/proc.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/arch/proc.h b/include/arch/proc.h
new file mode 100644
index 0000000..1dcb0af
--- /dev/null
+++ b/include/arch/proc.h
@@ -0,0 +1,20 @@
+#ifndef APOS_ARCH_PROC_H
+#define APOS_ARCH_PROC_H
+
+/**
+ * @file proc.h
+ * Arch-specific process related stuff.
+ */
+
+#if defined(riscv64)
+#include "../../arch/riscv64/include/proc.h"
+#elif defined(riscv32)
+#include "../../arch/riscv32/include/proc.h"
+#endif
+
+stat_t set_return(vm_t r);
+/*TODO: should this be in arch/tcb.h or something? */
+stat_t prepare_thread(struct tcb *t);
+stat_t run_init(struct tcb *t, void *fdt);
+
+#endif /* APOS_ARCH_PROC_H */