diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-05 23:19:42 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-05-05 23:19:42 +0300 |
| commit | 5fb1af3ab12880331fb1e2150aa23b1278e60ddd (patch) | |
| tree | 3e905ee027369f01611edbc1b1a1a00e9a30dc41 /common/tcb.c | |
| parent | 9273c16434316a8ab60dc78ee65a03e68031203a (diff) | |
| download | kmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.tar.gz kmi-5fb1af3ab12880331fb1e2150aa23b1278e60ddd.zip | |
riscv64 boots with clang (sort of)
Diffstat (limited to 'common/tcb.c')
| -rw-r--r-- | common/tcb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/tcb.c b/common/tcb.c index 326d9ac..bb1bcec 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -57,7 +57,8 @@ struct tcb *new_thread() /* move tcb to top of kernel stack, keeping alignment in check * (hopefully) */ /* TODO: check alignment */ - struct tcb *t = (struct tcb *)align_down(bottom + __o_size(MM_O0) - sizeof(struct tcb), sizeof(long)); + struct tcb *t = (struct tcb *)align_down( + bottom + __o_size(MM_O0) - sizeof(struct tcb), sizeof(long)); memset(t, 0, sizeof(struct tcb)); id_t tid = __alloc_tid(t); |
