summaryrefslogtreecommitdiff
path: root/core/thread/start_thread.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2011-04-09 02:23:44 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-12 14:40:52 -0700
commitff8ed8a79d682c8ce35aa62f208a8a730031c3e6 (patch)
tree5cf9df269ebca190c9e04d7b15ed0b9ebc3eaaae /core/thread/start_thread.c
parent10de0b22546489b58ef3588f77be3121a26c0a3e (diff)
downloadsyslinux-ff8ed8a79d682c8ce35aa62f208a8a730031c3e6.tar.gz
core thread: Make the code a little clearer.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core/thread/start_thread.c')
-rw-r--r--core/thread/start_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/thread/start_thread.c b/core/thread/start_thread.c
index 5486e562..52cc7dfb 100644
--- a/core/thread/start_thread.c
+++ b/core/thread/start_thread.c
@@ -28,7 +28,7 @@ struct thread *start_thread(const char *name, size_t stack_size, int prio,
return NULL;
t = (struct thread *)stack;
- stack = (char *)(t + 1); /* After the thread structure */
+ stack += sizeof(struct thread);
memset(t, 0, sizeof *t);