Espresso 0.0.2c
This commit is contained in:
21
include/scheduler.h
Normal file
21
include/scheduler.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef _SCHEDULER_H
|
||||
#define _SCHEDULER_H
|
||||
|
||||
|
||||
#include <drivers/irq.h>
|
||||
|
||||
#include <types.h>
|
||||
|
||||
typedef struct task {
|
||||
registers_t* regs; /* saved interrupt frame */
|
||||
uint32_t id;
|
||||
struct task* next;
|
||||
} task_t;
|
||||
|
||||
void init_scheduler(void);
|
||||
|
||||
registers_t* schedule(registers_t* regs);
|
||||
|
||||
task_t* create_task(void (*entry)());
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user