no more PF in kmain, but still PF in process OR corruption of fb

This commit is contained in:
2026-03-05 08:08:50 +01:00
parent a7d9e70a61
commit b9f55d89f6
10 changed files with 88 additions and 74 deletions

View File

@@ -21,6 +21,18 @@ void scheduler_init()
struct cpu_status_t* scheduler_schedule(struct cpu_status_t* context)
{
if (context == NULL)
{
panic(NULL, "Scheduler called with NULL context");
}
if (current_process == NULL)
{
// Wtf happened
current_process = processes_list;
//panic(NULL, "Scheduler called without current process");
}
current_process->context = context;
//current_process->status = READY;

View File

@@ -1,7 +0,0 @@
; Task (process) switching
bits 64
global switch_to_task
switch_to_task: