kernel: ldt support

This commit is contained in:
Matheus
2026-03-20 21:23:59 -03:00
parent a73c82f912
commit 41f97c6c61
17 changed files with 315 additions and 94 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ typedef struct {
uint64_t gsbase;
uint64_t fsbase;
void *xsave;
uint16_t fs, gs;
} extracontext_t;
extern size_t arch_xsave_size;
@@ -106,6 +107,6 @@ void arch_extracontext_copy(extracontext_t *dst, const extracontext_t *src);
arch_extracontext_save(c);
#define ARCH_CONTEXT_INTSTATUS(x) ((x)->rflags & 0x200 ? true : false)
#define ARCH_CONTEXT_ISUSER(x) ((x)->cs == 0x23)
#define ARCH_CONTEXT_ISUSER(x) ((x)->cs != 0x8)
#endif