diff options
Diffstat (limited to 'src/include/kernel/task.H')
| -rw-r--r-- | src/include/kernel/task.H | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/include/kernel/task.H b/src/include/kernel/task.H new file mode 100644 index 000000000..c2ae51de1 --- /dev/null +++ b/src/include/kernel/task.H @@ -0,0 +1,25 @@ +#ifndef __KERNEL_TASK_H +#define __KERNEL_TASK_H + +#include <kernel/types.h> + +struct context_t +{ + void* stack_ptr; + void* nip; + uint64_t gprs[32]; + uint64_t lr; + uint64_t ctr; + uint64_t xer; +}; + +struct task_t +{ + cpu_t* cpu; + context_t context; + + tid_t tid; + task_t* next; +}; + +#endif |

