diff options
author | AlmuHS <almuhs@github.com> | 2019-04-22 19:46:06 +0200 |
---|---|---|
committer | AlmuHS <almuhs@github.com> | 2019-04-22 19:46:06 +0200 |
commit | 823e4c7d2a6314d85ba753314487a09ebb721a81 (patch) | |
tree | e2e3ea06f7b88ee9dcf1be05659a61bc9df4ac37 /kern | |
parent | abd35870601beac4cff9b583952bcc2df65ef11b (diff) |
added some traces
Diffstat (limited to 'kern')
-rw-r--r-- | kern/startup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kern/startup.c b/kern/startup.c index 13caaafd..9bb9d47d 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -312,6 +312,8 @@ void cpu_launch_first_thread(thread_t th, int mycpu) PMAP_ACTIVATE_KERNEL(mycpu); + printf("kernel pmap enabled in cpu %d\n", mycpu); + active_threads[mycpu] = th; active_stacks[mycpu] = th->kernel_stack; thread_lock(th); @@ -321,8 +323,12 @@ void cpu_launch_first_thread(thread_t th, int mycpu) PMAP_ACTIVATE_USER(vm_map_pmap(th->task->map), th, mycpu); + printf("user pmap enabled in cpu %d\n", mycpu); + startrtclock(); /* needs an active thread */ + printf("clock started in cpu %d\n", mycpu); + load_context(th); /*NOTREACHED*/ } |