summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-12-11 21:42:09 +0100
committerRichard Braun <rbraun@sceen.net>2012-12-11 21:42:09 +0100
commit13ec72e8ae44308a1340f6f17641bddfe61b072d (patch)
treef865a9e3e91a4ebeea9ec9813b5600d74f8eb25d /kern/thread.h
parent49e0754e29947dbed6f9cb40a8ef881efaac0e00 (diff)
kern/thread: statically allocate idle thread structures
Preemption control is implemented using a thread-local counter. The global dummy thread structure must be replaced with per-CPU ones, which will be used later for the idle threads.
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.h b/kern/thread.h
index fe441e01..b7debddc 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -50,7 +50,7 @@ struct thread {
char name[THREAD_NAME_SIZE];
void (*fn)(void *);
void *arg;
-};
+} __aligned(CPU_L1_SIZE);
/*
* Per processor run queue.