2026-06-26 20:05:01 -05:00
|
|
|
#ifndef KSCHEDULER_H
|
|
|
|
|
#define KSCHEDULER_H
|
|
|
|
|
|
2026-06-29 17:00:07 -05:00
|
|
|
#include "process.h"
|
2026-06-26 20:05:01 -05:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
void init_scheduler();
|
|
|
|
|
|
2026-07-01 20:00:22 -05:00
|
|
|
int create_task(uint32_t entry_point, uint32_t cr3, int user, uint32_t u_esp);
|
2026-06-29 17:00:07 -05:00
|
|
|
process_t* current_task();
|
2026-06-26 20:05:01 -05:00
|
|
|
|
2026-06-28 17:58:58 -05:00
|
|
|
void sleep(uint32_t ms);
|
2026-06-26 20:05:01 -05:00
|
|
|
void yield();
|
2026-06-28 17:58:58 -05:00
|
|
|
void exit();
|
2026-07-06 22:13:57 -05:00
|
|
|
void wake(process_t* task);
|
2026-06-26 20:05:01 -05:00
|
|
|
|
|
|
|
|
#endif
|