diff options
author | Richard Braun <rbraun@sceen.net> | 2017-03-19 13:25:44 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-03-19 13:25:44 +0100 |
commit | 447b54395ad134724a7cb91e0cb80745a95a5e80 (patch) | |
tree | 377122d1d313bb019f7df0b8984244c4445ef93f /kern/thread.c | |
parent | 91ee89778de7a5d392c57d80e9a8aa1fba347d15 (diff) |
kern/thread: formally define interrupt context
Diffstat (limited to 'kern/thread.c')
-rw-r--r-- | kern/thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kern/thread.c b/kern/thread.c index 1a078fea..550de7ee 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -1700,6 +1700,7 @@ thread_bootstrap_common(unsigned int cpu) booter = &thread_booters[cpu]; booter->nr_refs = 0; /* Make sure booters aren't destroyed */ booter->flags = 0; + booter->intr = 0; booter->preempt = 1; cpumap_fill(&booter->cpumap); thread_set_user_sched_policy(booter, THREAD_SCHED_POLICY_IDLE); @@ -1817,6 +1818,7 @@ thread_init(struct thread *thread, void *stack, turnstile_td_init(&thread->turnstile_td); thread->last_cond = NULL; thread->propagate_priority = false; + thread->intr = 0; thread->preempt = THREAD_SUSPEND_PREEMPT_LEVEL; thread->pinned = 0; thread->llsync_read = 0; |