mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
scheduler: remove debugging code
This commit is contained in:
@@ -211,6 +211,7 @@ void switch_thread(thread_t* thread){
|
||||
|
||||
arch_getcls()->thread = thread;
|
||||
|
||||
|
||||
if(current->ctx != thread->ctx)
|
||||
vmm_switchcontext(thread->ctx);
|
||||
|
||||
@@ -297,7 +298,6 @@ void sched_yieldtrampoline(thread_t* thread){
|
||||
|
||||
timer_resume();
|
||||
|
||||
|
||||
switch_thread(thread);
|
||||
|
||||
}
|
||||
@@ -422,8 +422,10 @@ void sched_runinit(){
|
||||
|
||||
timer_add(&arch_getcls()->schedreq, THREAD_QUANTUM, true);
|
||||
|
||||
thread->extraregs.gsbase = 0xDEAD000C0FFE0000;
|
||||
printf("Switching to init thread\n");
|
||||
|
||||
switch_thread(thread);
|
||||
|
||||
__builtin_unreachable();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user