]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/Ia32/PlDebugSupportIa32.c
retired PcdNtEmulatorEnable.
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / Ia32 / PlDebugSupportIa32.c
index 290fea69d5c12c9f50d809a3c3d26a1fec4f657c..b7c182f5808d43b7a6f7817def1af9fe32e4effe 100644 (file)
@@ -115,31 +115,29 @@ ManageIdtEntryTable (
 \r
   Status = EFI_SUCCESS;\r
 \r
-  if (!FeaturePcdGet (PcdNtEmulatorEnable)) {\r
-    if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR)) != 0) {\r
+  if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR)) != 0) {\r
+    //\r
+    // we've already installed to this vector\r
+    //\r
+    if (NewCallback != NULL) {\r
       //\r
-      // we've already installed to this vector\r
+      // if the input handler is non-null, error\r
       //\r
-      if (NewCallback != NULL) {\r
-        //\r
-        // if the input handler is non-null, error\r
-        //\r
-        Status = EFI_ALREADY_STARTED;\r
-      } else {\r
-        UnhookEntry (ExceptionType);\r
-      }\r
+      Status = EFI_ALREADY_STARTED;\r
     } else {\r
+      UnhookEntry (ExceptionType);\r
+    }\r
+  } else {\r
+    //\r
+    // no user handler installed on this vector\r
+    //\r
+    if (NewCallback == NULL) {\r
       //\r
-      // no user handler installed on this vector\r
+      // if the input handler is null, error\r
       //\r
-      if (NewCallback == NULL) {\r
-        //\r
-        // if the input handler is null, error\r
-        //\r
-        Status = EFI_INVALID_PARAMETER;\r
-      } else {\r
-        HookEntry (ExceptionType, NewCallback);\r
-      }\r
+      Status = EFI_INVALID_PARAMETER;\r
+    } else {\r
+      HookEntry (ExceptionType, NewCallback);\r
     }\r
   }\r
 \r