#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2010, Intel Corporation\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
ASM_GLOBAL ASM_PFX(InternalX86WriteIdtr)\r
ASM_PFX(InternalX86WriteIdtr):\r
movl 4(%esp), %eax\r
+ pushfl\r
+ cli\r
lidt (%eax)\r
+ popfl\r
ret\r
;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2006, Intel Corporation\r
+; Copyright (c) 2006 - 2010, Intel Corporation\r
; All rights reserved. This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
;------------------------------------------------------------------------------\r
InternalX86WriteIdtr PROC\r
mov eax, [esp + 4]\r
+ pushfd\r
+ cli\r
lidt fword ptr [eax]\r
+ popfd\r
ret\r
InternalX86WriteIdtr ENDP\r
\r
/** @file\r
AsmWriteIdtr function\r
\r
- Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+ Copyright (c) 2006 - 2010, Intel Corporation<BR>\r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
{\r
_asm {\r
mov eax, Idtr\r
+ pushfd\r
+ cli\r
lidt fword ptr [eax]\r
+ popfd\r
}\r
}\r
\r
#------------------------------------------------------------------------------\r
#\r
-# Copyright (c) 2006 - 2009, Intel Corporation\r
+# Copyright (c) 2006 - 2010, Intel Corporation\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
#------------------------------------------------------------------------------\r
ASM_GLOBAL ASM_PFX(InternalX86WriteIdtr)\r
ASM_PFX(InternalX86WriteIdtr):\r
+ pushfq\r
+ cli\r
lidt (%rcx)\r
+ popfq\r
ret\r
;------------------------------------------------------------------------------\r
;\r
-; Copyright (c) 2006, Intel Corporation\r
+; Copyright (c) 2006 - 2010, Intel Corporation\r
; All rights reserved. This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
; );\r
;------------------------------------------------------------------------------\r
InternalX86WriteIdtr PROC\r
+ pushfq\r
+ cli\r
lidt fword ptr [rcx]\r
+ popfq\r
ret\r
InternalX86WriteIdtr ENDP\r
\r