summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-28 15:41:59 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-28 15:41:59 +0100
commitb174f7fb7f936ca0365a851d3fd486e6baba357e (patch)
treeda4f0c8dfe6141602baed5556c78a5f5800dffe0 /src/thread.c
parent4778a84feb6c53e08fd2f15e33f2d1df64c0737f (diff)
mem: fix alignment
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c8
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