gEfiSerialIoProtocolGuid # PROTOCOL BY_START\r
gEfiDevicePathProtocolGuid # PROTOCOL TO_START\r
\r
-[FeaturePcd.common]\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable\r
-\r
[FixedPcd.common]\r
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200\r
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8\r
do {\r
Lsr.Data = READ_LSR (SerialDevice->IsaIo, SerialDevice->BaseAddress);\r
\r
- if (FeaturePcdGet (PcdNtEmulatorEnable)) {\r
- //\r
- // This is required for NT to avoid a forever-spin...\r
- // This would be better if READ_LSR was a polling operation\r
- // that would timeout.\r
- //\r
- Lsr.Bits.THRE = 1;\r
- }\r
//\r
// Flush incomming data to prevent a an overrun during a long write\r
//\r
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0xAA);\r
\r
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0xAA) {\r
- if (!FeaturePcdGet (PcdNtEmulatorEnable)) {\r
- Status = FALSE;\r
- }\r
+ Status = FALSE;\r
}\r
\r
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0x55);\r
\r
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0x55) {\r
- if (!FeaturePcdGet (PcdNtEmulatorEnable)) {\r
- Status = FALSE;\r
- }\r
+ Status = FALSE;\r
}\r
//\r
// Restore SCR\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdIsaBusSupportIsaMemory|TRUE\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfgDisable|TRUE\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfg2Disable|TRUE\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE\r
+\r
\r
[PcdsFixedAtBuild.common]\r
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000\r
// Install PeiStatusCodePpi.\r
// PeiServices use this Ppi to output status code.\r
// use library\r
- if (!FeaturePcdGet(PcdNtEmulatorEnable)) {\r
- Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);\r
- ASSERT_EFI_ERROR (Status);\r
- }\r
+ Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);\r
+ ASSERT_EFI_ERROR (Status);\r
\r
return EFI_SUCCESS;\r
}\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseOEM\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory\r
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable\r
\r
\r
[Pcd.common]\r
# It can be disabled to save size.\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE|BOOLEAN|0x00010038\r
\r
- ## If this PCD is set as TRUE, the code specific to NT emulator will be enabled.\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE|BOOLEAN|0x0001003e\r
- \r
## If TRUE, track statistical information about variable usage stored in the EFI system table.\r
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f\r
\r
# provides debug-agent to periodically gain control during operation of the machine to\r
# check for asynchronous commands form the host.\r
#\r
-# Copyright (c) 2006 - 2008, Intel Corporation\r
+# Copyright (c) 2006 - 2009, Intel Corporation\r
#\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
gEfiDebugSupportProtocolGuid ## PRODUCED\r
\r
\r
-[FeaturePcd.IA32]\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable\r
-\r
-\r
[Depex]\r
TRUE\r
\r
\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
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeReplayInOEM|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|TRUE\r
+ gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE\r
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE\r
gEfiEdkModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE\r
- gEfiEdkModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE\r
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE\r
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE\r
gEfiGenericPlatformTokenSpaceGuid.PcdPciIsaEnable|FALSE\r
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE\r
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE\r
- gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|TRUE\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE\r
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE\r