]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/IA32/MpFuncs.S
1.Restore BSP IDT table to AP when AP wakeup.
[mirror_edk2.git] / EdkCompatibilityPkg / Compatibility / MpServicesOnFrameworkMpServicesThunk / IA32 / MpFuncs.S
index 40f5759b4e838f98f87583413170d931176adbc0..4da7fd5011925c84b247486fb41a3859b37cf98b 100644 (file)
@@ -1,8 +1,8 @@
 #------------------------------------------------------------------------------\r
 # IA32 assembly file for AP startup vector.\r
 #\r
-# Copyright (c) 2009, Intel Corporation\r
-# All rights reserved. This program and the accompanying materials\r
+# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# 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
 # http://opensource.org/licenses/bsd-license.php\r
@@ -58,6 +58,11 @@ RendezvousFunnelProcStart:
         .byte 0x66                    # db         66h\r
         .byte 0x2E,0xF,0x1,0x14       # lgdt       fword ptr cs:[si]\r
 \r
+        .byte 0xBE\r
+        .word IdtrProfile\r
+        .byte 0x66                    # db         66h\r
+        .byte 0x2E,0xF,0x1,0x1C       # lidt       fword ptr cs:[si]\r
+\r
         .byte 0x33,0xC0               # xor        ax,  ax\r
         .byte 0x8E,0xD8               # mov        ds,  ax\r
         .byte 0xF,0x20,0xC0           # mov        eax, cr0                    ; Get control register 0\r