From 9925620c56d546a91bf9934be1673afca680438b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 9 Oct 2011 12:28:54 +0800 Subject: [PATCH] Kernel/x86_64 - Fixed usage of IA32_FMASK --- Kernel/arch/x86_64/desctab.asm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/arch/x86_64/desctab.asm b/Kernel/arch/x86_64/desctab.asm index 8ee4352e..a69e06ad 100644 --- a/Kernel/arch/x86_64/desctab.asm +++ b/Kernel/arch/x86_64/desctab.asm @@ -118,7 +118,7 @@ Desctab_Init: ; Set IA32_FMASK (flags mask) mov ecx, 0xC0000084 rdmsr - mov eax, 0x202 + mov eax, ~0x202 wrmsr ; Set IA32_STAR (Kernel/User CS) mov ecx, 0xC0000081 @@ -386,8 +386,6 @@ SyscallStub: push rcx ; RIP push r11 ; RFLAGS - sti ; Start interrupts again - ; RDI ; RSI ; RDX -- 2.20.1