summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/processor.c
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2025-08-17 14:16:55 -0400
committerJon Santmyer <jon@jonsantmyer.com>2025-08-17 14:16:55 -0400
commit7ee9347560768641096df68c545ac085a20233e4 (patch)
tree5b567f2e98cd9e6aeee33eeecd7fbf6f2fafdeab /arch/x86_64/processor.c
parentf466364b8a3858e7b3f19258d142851cb4a7e6d6 (diff)
downloadjove-kernel-7ee9347560768641096df68c545ac085a20233e4.tar.gz
jove-kernel-7ee9347560768641096df68c545ac085a20233e4.tar.bz2
jove-kernel-7ee9347560768641096df68c545ac085a20233e4.zip
working usermode pager. fix usermode interrupts
Diffstat (limited to 'arch/x86_64/processor.c')
-rw-r--r--arch/x86_64/processor.c4
1 files changed, 2 insertions, 2 deletions
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);