os/kernel/cpu/i386/tasking.h

22 lines
311 B
C
Raw Normal View History

2019-02-11 09:30:28 -06:00
#ifndef INT_TASKING_H
#define INT_TASKING_H
#include <stdint.h>
typedef struct Task {
2019-05-21 19:16:19 -05:00
uint32_t kernel_esp;
uint32_t kernel_esp_top;
2019-05-11 10:11:28 -05:00
uint32_t cr3;
2019-05-21 19:16:19 -05:00
uint32_t user_esp;
2019-05-11 10:11:28 -05:00
char priv;
int errno;
uint32_t pid;
2019-08-25 17:06:19 -05:00
struct Task* prev;
2019-05-11 10:11:28 -05:00
struct Task* next;
} Task;
2019-02-11 09:30:28 -06:00
2019-04-08 15:58:30 -05:00
int* tasking_get_errno_address();
2019-02-11 09:30:28 -06:00
#endif