summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/sysenter.h
blob: 65c46f8d56d36884f408c3456625d59eea1c0f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once
#include <kernel/types.h>

typedef struct SysexitRegs SysexitRegs;
struct SysexitRegs {
	UserRegs u;
	char sse[512];
};
_Static_assert(sizeof(SysexitRegs) == 18 * 8 + 512);

extern SysexitRegs _sysexit_regs;
_Noreturn void sysenter_stage2(void);

_Noreturn void _sysexit_real(void);