aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
blob: 7c6ad5b4bddd9d87811060bdede5ffa55842972f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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);
stat_t set_ipc(struct tcb *t, id_t pid, id_t tid);
/*\todo: should this be in arch/tcb.h or something? */
stat_t set_thread(struct tcb *t, vm_t stack);
stat_t run_init(struct tcb *t, void *fdt);

#endif /* APOS_ARCH_PROC_H */