From: John Hodge Date: Sun, 9 Oct 2011 04:28:54 +0000 (+0800) Subject: Kernel/x86_64 - Fixed usage of IA32_FMASK X-Git-Tag: rel0.11~1 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9925620c56d546a91bf9934be1673afca680438b;p=tpg%2Facess2.git Kernel/x86_64 - Fixed usage of IA32_FMASK --- 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