Kernel/Scheduler: Display addresses starting with 0x when creating threads
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-01-07 12:02:14 +01:00
parent 471103e4f3
commit 8ee634d19b
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -33,7 +33,7 @@ namespace Scheduler
g_idle.stack = idle_stack;
kinfoln("CREATED IDLE THREAD: id %lu with ip %lx and sp %lx", g_idle.id, g_idle.ip(), g_idle.sp());
kinfoln("CREATED IDLE THREAD: id %lu with ip %#lx and sp %#lx", g_idle.id, g_idle.ip(), g_idle.sp());
g_current = &g_idle;
}
@ -66,7 +66,7 @@ namespace Scheduler
g_threads.append(thread);
kinfoln("CREATED THREAD: id %lu with ip %lx and sp %lx", thread->id, thread->ip(), thread->sp());
kinfoln("CREATED THREAD: id %lu with ip %#lx and sp %#lx", thread->id, thread->ip(), thread->sp());
return {};
}
@ -148,7 +148,7 @@ namespace Scheduler
guard.deactivate();
directory_guard.deactivate();
kinfoln("CREATED USERSPACE THREAD: id %lu with ip %lx and sp %lx (ksp %lx)", thread->id, thread->ip(),
kinfoln("CREATED USERSPACE THREAD: id %lu with ip %#.16lx and sp %#.16lx (ksp %#lx)", thread->id, thread->ip(),
thread->sp(), thread->kernel_stack.top());
g_threads.append(thread);