mirror of https://github.com/acidanthera/audk.git
retired PcdNtEmulatorEnable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7792 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7ee40c6e79
commit
ea2d90867a
|
@ -62,9 +62,6 @@
|
||||||
gEfiSerialIoProtocolGuid # PROTOCOL BY_START
|
gEfiSerialIoProtocolGuid # PROTOCOL BY_START
|
||||||
gEfiDevicePathProtocolGuid # PROTOCOL TO_START
|
gEfiDevicePathProtocolGuid # PROTOCOL TO_START
|
||||||
|
|
||||||
[FeaturePcd.common]
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable
|
|
||||||
|
|
||||||
[FixedPcd.common]
|
[FixedPcd.common]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8
|
||||||
|
|
|
@ -805,14 +805,6 @@ IsaSerialReceiveTransmit (
|
||||||
do {
|
do {
|
||||||
Lsr.Data = READ_LSR (SerialDevice->IsaIo, SerialDevice->BaseAddress);
|
Lsr.Data = READ_LSR (SerialDevice->IsaIo, SerialDevice->BaseAddress);
|
||||||
|
|
||||||
if (FeaturePcdGet (PcdNtEmulatorEnable)) {
|
|
||||||
//
|
|
||||||
// This is required for NT to avoid a forever-spin...
|
|
||||||
// This would be better if READ_LSR was a polling operation
|
|
||||||
// that would timeout.
|
|
||||||
//
|
|
||||||
Lsr.Bits.THRE = 1;
|
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// Flush incomming data to prevent a an overrun during a long write
|
// Flush incomming data to prevent a an overrun during a long write
|
||||||
//
|
//
|
||||||
|
@ -1728,17 +1720,13 @@ IsaSerialPortPresent (
|
||||||
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0xAA);
|
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0xAA);
|
||||||
|
|
||||||
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0xAA) {
|
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0xAA) {
|
||||||
if (!FeaturePcdGet (PcdNtEmulatorEnable)) {
|
Status = FALSE;
|
||||||
Status = FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0x55);
|
WRITE_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress, 0x55);
|
||||||
|
|
||||||
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0x55) {
|
if (READ_SCR (SerialDevice->IsaIo, SerialDevice->BaseAddress) != 0x55) {
|
||||||
if (!FeaturePcdGet (PcdNtEmulatorEnable)) {
|
Status = FALSE;
|
||||||
Status = FALSE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Restore SCR
|
// Restore SCR
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdIsaBusSupportIsaMemory|TRUE
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdIsaBusSupportIsaMemory|TRUE
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfgDisable|TRUE
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfgDisable|TRUE
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfg2Disable|TRUE
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPciCfg2Disable|TRUE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE
|
|
||||||
|
|
||||||
[PcdsFixedAtBuild.common]
|
[PcdsFixedAtBuild.common]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
|
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
|
||||||
|
|
|
@ -135,10 +135,8 @@ PeiStatusCodeDriverEntry (
|
||||||
// Install PeiStatusCodePpi.
|
// Install PeiStatusCodePpi.
|
||||||
// PeiServices use this Ppi to output status code.
|
// PeiServices use this Ppi to output status code.
|
||||||
// use library
|
// use library
|
||||||
if (!FeaturePcdGet(PcdNtEmulatorEnable)) {
|
Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);
|
||||||
Status = PeiServicesInstallPpi (&mStatusCodePpiDescriptor);
|
ASSERT_EFI_ERROR (Status);
|
||||||
ASSERT_EFI_ERROR (Status);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,6 @@
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseOEM
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseOEM
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable
|
|
||||||
|
|
||||||
|
|
||||||
[Pcd.common]
|
[Pcd.common]
|
||||||
|
|
|
@ -229,9 +229,6 @@
|
||||||
# It can be disabled to save size.
|
# It can be disabled to save size.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE|BOOLEAN|0x00010038
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE|BOOLEAN|0x00010038
|
||||||
|
|
||||||
## If this PCD is set as TRUE, the code specific to NT emulator will be enabled.
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE|BOOLEAN|0x0001003e
|
|
||||||
|
|
||||||
## If TRUE, track statistical information about variable usage stored in the EFI system table.
|
## If TRUE, track statistical information about variable usage stored in the EFI system table.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|FALSE|BOOLEAN|0x0001003f
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# provides debug-agent to periodically gain control during operation of the machine to
|
# provides debug-agent to periodically gain control during operation of the machine to
|
||||||
# check for asynchronous commands form the host.
|
# check for asynchronous commands form the host.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 - 2008, Intel Corporation
|
# Copyright (c) 2006 - 2009, Intel Corporation
|
||||||
#
|
#
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
|
@ -84,10 +84,6 @@
|
||||||
gEfiDebugSupportProtocolGuid ## PRODUCED
|
gEfiDebugSupportProtocolGuid ## PRODUCED
|
||||||
|
|
||||||
|
|
||||||
[FeaturePcd.IA32]
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable
|
|
||||||
|
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
TRUE
|
||||||
|
|
||||||
|
|
|
@ -115,31 +115,29 @@ ManageIdtEntryTable (
|
||||||
|
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
if (!FeaturePcdGet (PcdNtEmulatorEnable)) {
|
if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR)) != 0) {
|
||||||
if (CompareMem (&IdtEntryTable[ExceptionType].NewDesc, &NullDesc, sizeof (IA32_IDT_GATE_DESCRIPTOR)) != 0) {
|
//
|
||||||
|
// we've already installed to this vector
|
||||||
|
//
|
||||||
|
if (NewCallback != NULL) {
|
||||||
//
|
//
|
||||||
// we've already installed to this vector
|
// if the input handler is non-null, error
|
||||||
//
|
//
|
||||||
if (NewCallback != NULL) {
|
Status = EFI_ALREADY_STARTED;
|
||||||
//
|
|
||||||
// if the input handler is non-null, error
|
|
||||||
//
|
|
||||||
Status = EFI_ALREADY_STARTED;
|
|
||||||
} else {
|
|
||||||
UnhookEntry (ExceptionType);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
|
UnhookEntry (ExceptionType);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//
|
||||||
|
// no user handler installed on this vector
|
||||||
|
//
|
||||||
|
if (NewCallback == NULL) {
|
||||||
//
|
//
|
||||||
// no user handler installed on this vector
|
// if the input handler is null, error
|
||||||
//
|
//
|
||||||
if (NewCallback == NULL) {
|
Status = EFI_INVALID_PARAMETER;
|
||||||
//
|
} else {
|
||||||
// if the input handler is null, error
|
HookEntry (ExceptionType, NewCallback);
|
||||||
//
|
|
||||||
Status = EFI_INVALID_PARAMETER;
|
|
||||||
} else {
|
|
||||||
HookEntry (ExceptionType, NewCallback);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -319,7 +319,7 @@
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeReplayInOEM|FALSE
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdStatusCodeReplayInOEM|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|TRUE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
|
||||||
|
|
|
@ -299,7 +299,6 @@
|
||||||
gEfiEdkModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE
|
gEfiEdkModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
||||||
gEfiEdkModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|FALSE
|
|
||||||
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
||||||
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
gEfiEdkModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
||||||
gEfiGenericPlatformTokenSpaceGuid.PcdPciIsaEnable|FALSE
|
gEfiGenericPlatformTokenSpaceGuid.PcdPciIsaEnable|FALSE
|
||||||
|
@ -335,7 +334,6 @@
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdNtEmulatorEnable|TRUE
|
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathToText|TRUE
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDevicePathSupportDevicePathFromText|TRUE
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
|
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
|
||||||
|
|
Loading…
Reference in New Issue