summaryrefslogtreecommitdiff
path: root/core/thread/start_thread.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-27 09:27:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-04-27 09:27:10 -0700
commite0d9a80bd9690cdd4fc6c13c7eebe11cb26bf53e (patch)
tree3c1783e67380d235a7123216be439ca5bbefa673 /core/thread/start_thread.c
parent7dfe5f27a0fc56ba3da0e300043731af0bdf13de (diff)
downloadsyslinux-e0d9a80bd9690cdd4fc6c13c7eebe11cb26bf53e.tar.gz
thread: make kill_thread() actually do its job
kill_thread() had been modifying errno(!) as if it had been the return value... in other words, it really did absolutely nothing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/thread/start_thread.c')
-rw-r--r--core/thread/start_thread.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/thread/start_thread.c b/core/thread/start_thread.c
index dd2a4de1..328d6e7b 100644
--- a/core/thread/start_thread.c
+++ b/core/thread/start_thread.c
@@ -8,16 +8,6 @@
extern void __start_thread(void);
-/*
- * Stack frame used by __switch_to, see thread_asm.S
- */
-struct thread_stack {
- int errno;
- uint16_t rmsp, rmss;
- uint32_t edi, esi, ebp, ebx;
- void (*eip)(void);
-};
-
struct thread *start_thread(const char *name, size_t stack_size, int prio,
void (*start_func)(void *), void *func_arg)
{