diff options
Diffstat (limited to 'src/thread.c')
-rw-r--r-- | src/thread.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/thread.c b/src/thread.c index 6687191..bb5ddc4 100644 --- a/src/thread.c +++ b/src/thread.c @@ -592,14 +592,6 @@ thread_init(struct thread *thread, thread_fn_t fn, void *arg, const char *name, char *stack, size_t stack_size, unsigned int priority) { - if (!P2ALIGNED((uint32_t)stack, CPU_STACK_ALIGN)) { - char *aligned_stack; - - aligned_stack = (char *)(P2ALIGN((uintptr_t)stack, CPU_STACK_ALIGN)); - stack_size -= (stack - aligned_stack); - stack = aligned_stack; - } - /* * New threads are created in a state that is similar to preempted threads, * since it makes running them for the first time indistinguishable from |