summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:42:04 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-22 21:42:04 +0100
commitb3b8940afb7f0e2c5ccf52827a81faf989bc7369 (patch)
tree893f0ea59c2ddccc38b609551bf2cdafd5f9cf27
parentc5eea2ac411c0bf04e798895a83b581359dabb82 (diff)
Really call startrtclock() with an active thread.
* kern/startup.c (cpu_launch_first_thread): Call startrtclock really after starting at least one thread.
-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*/
}