aboutsummaryrefslogtreecommitdiff
path: root/include/arch/proc.h
blob: 1dcb0af8f186086c15dc0196bc94ce31f6c42b11 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */