summaryrefslogtreecommitdiffstats
path: root/include/tcb.h
blob: 65450838ad077dc78501e881954bfffc39e556ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _JOVE_TCB_H
#define _JOVE_TCB_H 1

#include <stddef.h>
#include <stdint.h>

typedef struct jove_ThreadControlBlock
{
    uintmax_t id;
    struct jove_ThreadControlBlock *children;
    struct jove_ThreadControlBlock *next;

    void *stack;
    uintptr_t sp, ksp;
    void *pml4;
} tcb_t;

#endif