summaryrefslogtreecommitdiff
path: root/kern/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/startup.c')
-rw-r--r--kern/startup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/startup.c b/kern/startup.c
index e057e8f..417fa4a 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -284,7 +284,6 @@ void cpu_launch_first_thread(th)
if (th == THREAD_NULL)
panic("cpu_launch_first_thread");
- startrtclock(); /* needs an active thread */
PMAP_ACTIVATE_KERNEL(mycpu);
active_threads[mycpu] = th;
@@ -296,6 +295,8 @@ void cpu_launch_first_thread(th)
PMAP_ACTIVATE_USER(vm_map_pmap(th->task->map), th, mycpu);
+ startrtclock(); /* needs an active thread */
+
load_context(th);
/*NOTREACHED*/
}