wip: better way of handling thread switch (iret in the switch)
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
void scheduler(void);
|
||||
#include <stdint.h>
|
||||
|
||||
void scheduler(uint32_t *esp);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user