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

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

struct TSS
{
    uint32_t resv0;
    uint32_t rsp[3][2];
    uint64_t resv1;
    uint32_t ist[8][2];
    uint64_t resv2;
    uint16_t resv3;
    uint16_t iobp;
};

void tss_set_rsp(uint8_t dpl, uintptr_t rsp);

#endif