diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2011-05-01 18:05:23 -0700 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2011-05-01 18:05:23 -0700 |
| commit | f8e82f9f4dab637783b5dbcec61956bba1c57faf (patch) | |
| tree | 09255dc60db95351c82ccb740734defd89cbf19a /core/thread | |
| parent | 7a97bd6adda1d2bc270a33d8ec774e4c5eb88056 (diff) | |
| download | syslinux-f8e82f9f4dab637783b5dbcec61956bba1c57faf.tar.gz | |
thread: fix warnings
Fix set-but-not-used variable warnings and undefined references.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/thread')
| -rw-r--r-- | core/thread/exit_thread.c | 6 | ||||
| -rw-r--r-- | core/thread/schedule.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/core/thread/exit_thread.c b/core/thread/exit_thread.c index 92c84a4d..d9fd83ad 100644 --- a/core/thread/exit_thread.c +++ b/core/thread/exit_thread.c @@ -1,14 +1,14 @@ -#include "thread.h" #include <limits.h> #include <stdlib.h> #include <klibc/compiler.h> +#include "thread.h" +#include "core.h" __noreturn __exit_thread(void) { - irq_state_t irq; struct thread *curr = current(); - irq = irq_save(); + cli(); /* Remove from the linked list */ curr->list.prev->next = curr->list.next; diff --git a/core/thread/schedule.c b/core/thread/schedule.c index cf25f251..8991305c 100644 --- a/core/thread/schedule.c +++ b/core/thread/schedule.c @@ -1,5 +1,6 @@ #include <sys/cpu.h> #include "thread.h" +#include "core.h" void (*sched_hook_func)(void); |
