wip: better way of handling thread switch (iret in the switch)

This commit is contained in:
0x35c
2025-11-11 11:13:35 +01:00
parent bf993baa59
commit 9059901f70
7 changed files with 64 additions and 66 deletions

View File

@ -1,3 +1,5 @@
#pragma once
void scheduler(void);
#include <stdint.h>
void scheduler(uint32_t *esp);

View File

@ -24,4 +24,4 @@ struct tcb {
struct tcb *create_thread(struct pcb *process, void (*entry)(void));
void delete_thread(struct tcb *thread);
void switch_thread(struct tcb *thread_to_switch);
void switch_thread(uint32_t *esp);