diff options
Diffstat (limited to 'arch/x86_64/processor.c')
-rw-r--r-- | arch/x86_64/processor.c | 4 |
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); |