summaryrefslogtreecommitdiffstats
path: root/include/arch/x86_64/object.h
blob: e13a9870cd2c8fc4ae7f7aefc06673fb636a5ed1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _JOVE_x86_64_OBJECT_H
#define _JOVE_x86_64_OBJECT_H 1

#include <stdint.h>

#ifndef KERNEL_STACKBYTES
#define KERNEL_STACKBYTES 4096
#endif

typedef struct jove_ThreadControlBlock
{
    void *stack;
    uintptr_t sp, ksp;
    void *pml4;
    void *mailbox;
    uint8_t kstack[KERNEL_STACKBYTES];
} tcb_t;

#endif