summaryrefslogtreecommitdiffstats
path: root/include/arch/x86_64/object.h
blob: 77b07eafa426e4d5853ba2e09bd7d0995de9e61a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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;

    /* PML caching for faster calls?*/

    uint8_t kstack[KERNEL_STACKBYTES];
} tcb_t;

#endif