From 7ee9347560768641096df68c545ac085a20233e4 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 17 Aug 2025 14:16:55 -0400 Subject: working usermode pager. fix usermode interrupts --- arch/x86_64/processor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/x86_64/processor.c') diff --git a/arch/x86_64/processor.c b/arch/x86_64/processor.c index 3ebf1ee..f7e5cac 100644 --- a/arch/x86_64/processor.c +++ b/arch/x86_64/processor.c @@ -66,8 +66,8 @@ s_enable_sce(void) wrmsr(MSR_EFER, feat.v[0], feat.v[1]); msr_star_t star; - star.kcs = GDT_ENTRY_KERNEL_CODE * sizeof(segment_descriptor_t); - star.ucs = GDT_ENTRY_USER_CODE * sizeof(segment_descriptor_t); + star.kcs = GDT_OFFSET_KERNEL_CODE; + star.ucs = GDT_OFFSET_USER_CODE; wrmsr(MSR_STAR, star.v[0], star.v[1]); extern void _syscall_entry(void); -- cgit v1.2.1