hazel/include/kernel/task.h

23 lines
368 B
C

#ifndef HAZEL_TASK_H_
#define HAZEL_TASK_H_
#include <stdint.h>
#include <kernel/elf.h>
typedef struct {
uint32_t esp;
uint32_t cr3;
uint32_t *next;
uint32_t eip;
// Shove these into a different struct
uint8_t *stdin;
uint32_t stdin_len;
} task_t;
int task_init(task_t *task, elf_t *elf);
void task_sort();
void schedule(void);
#endif