summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/sysenter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/amd64/sysenter.h')
-rw-r--r--src/kernel/arch/amd64/sysenter.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/kernel/arch/amd64/sysenter.h b/src/kernel/arch/amd64/sysenter.h
index 03a9f45..65c46f8 100644
--- a/src/kernel/arch/amd64/sysenter.h
+++ b/src/kernel/arch/amd64/sysenter.h
@@ -1,9 +1,14 @@
#pragma once
#include <kernel/types.h>
-// sysenter.c
-extern CpuRegs _sysexit_regs;
+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);
-// sysenter.s
_Noreturn void _sysexit_real(void);