smp: enable smp
This is a very large patch. Don't feel like splitting it up. Deal with it, :P Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
33d6f72cfe
commit
e5b97c2576
19 changed files with 129 additions and 52 deletions
|
|
@ -55,6 +55,8 @@ static struct thread *dequeue_thread()
|
|||
if (!sched_queue.head)
|
||||
sched_queue.tail = NULL;
|
||||
t->next = NULL;
|
||||
} else {
|
||||
t = tls_get()->idle_thread;
|
||||
}
|
||||
spinlock_release(&sched_queue.lock);
|
||||
return t;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
#include <lib/string.h>
|
||||
|
||||
#define USTACK_DEFAULT_SIZE 0x10000
|
||||
#define P_STACK_SIZE 0x4000
|
||||
|
||||
mem_cache_t *thread_slab;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue