From 5fb1af3ab12880331fb1e2150aa23b1278e60ddd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 5 May 2022 23:19:42 +0300 Subject: riscv64 boots with clang (sort of) --- common/tcb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/tcb.c') 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); -- cgit v1.3