summaryrefslogtreecommitdiffstats
path: root/src/include/kernel/task.H
blob: d9256c36575714d6070bca45d8561863d0b68fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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 cr;
    uint64_t ctr;
    uint64_t xer;
};

struct task_t
{
    cpu_t* cpu;
    context_t context;
    
    tid_t tid;
    task_t* next;
};

#endif
OpenPOWER on IntegriCloud