mirror of https://github.com/acidanthera/audk.git
Remove the code added originally to restore 8254 timer to 54ms.
Signed-off-by: li-elvin Reviewed-by: jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12109 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6bae492fb4
commit
47a43df2df
|
@ -132,7 +132,6 @@
|
||||||
gEfiLegacyInterruptProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiLegacyInterruptProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
gEfiLegacyRegion2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiLegacyRegion2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
gEfiLegacyBiosProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
gEfiLegacyBiosProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||||
gEfiTimerArchProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion
|
||||||
|
|
|
@ -40,7 +40,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Protocol/DevicePath.h>
|
#include <Protocol/DevicePath.h>
|
||||||
#include <Protocol/Legacy8259.h>
|
#include <Protocol/Legacy8259.h>
|
||||||
#include <Protocol/PciRootBridgeIo.h>
|
#include <Protocol/PciRootBridgeIo.h>
|
||||||
#include <Protocol/Timer.h>
|
|
||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
@ -61,9 +60,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Library/DebugAgentLib.h>
|
#include <Library/DebugAgentLib.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// System Tickers
|
|
||||||
//
|
|
||||||
#define DEFAULT_LAGACY_TIMER_TICK_DURATION 549254
|
|
||||||
// BUGBUG: This entry maybe changed to PCD in future and wait for
|
// BUGBUG: This entry maybe changed to PCD in future and wait for
|
||||||
// redesign of BDS library
|
// redesign of BDS library
|
||||||
//
|
//
|
||||||
|
|
|
@ -819,14 +819,11 @@ GenericLegacyBoot (
|
||||||
VOID *AcpiTable;
|
VOID *AcpiTable;
|
||||||
UINTN ShadowAddress;
|
UINTN ShadowAddress;
|
||||||
UINT32 Granularity;
|
UINT32 Granularity;
|
||||||
EFI_TIMER_ARCH_PROTOCOL *Timer;
|
|
||||||
UINT64 TimerPeriod;
|
|
||||||
|
|
||||||
LocalHddInfo = NULL;
|
LocalHddInfo = NULL;
|
||||||
HddCount = 0;
|
HddCount = 0;
|
||||||
BbsCount = 0;
|
BbsCount = 0;
|
||||||
LocalBbsTable = NULL;
|
LocalBbsTable = NULL;
|
||||||
TimerPeriod = 0;
|
|
||||||
|
|
||||||
Private = LEGACY_BIOS_INSTANCE_FROM_THIS (This);
|
Private = LEGACY_BIOS_INSTANCE_FROM_THIS (This);
|
||||||
DEBUG_CODE (
|
DEBUG_CODE (
|
||||||
|
@ -842,36 +839,6 @@ GenericLegacyBoot (
|
||||||
EfiToLegacy16BootTable->MajorVersion = EFI_TO_LEGACY_MAJOR_VERSION;
|
EfiToLegacy16BootTable->MajorVersion = EFI_TO_LEGACY_MAJOR_VERSION;
|
||||||
EfiToLegacy16BootTable->MinorVersion = EFI_TO_LEGACY_MINOR_VERSION;
|
EfiToLegacy16BootTable->MinorVersion = EFI_TO_LEGACY_MINOR_VERSION;
|
||||||
|
|
||||||
//
|
|
||||||
// Before starting the Legacy boot check the system ticker.
|
|
||||||
//
|
|
||||||
Status = gBS->LocateProtocol (
|
|
||||||
&gEfiTimerArchProtocolGuid,
|
|
||||||
NULL,
|
|
||||||
(VOID **) &Timer
|
|
||||||
);
|
|
||||||
if (EFI_ERROR (Status)) {
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
Status = Timer->GetTimerPeriod (
|
|
||||||
Timer,
|
|
||||||
&TimerPeriod
|
|
||||||
);
|
|
||||||
if (EFI_ERROR (Status)) {
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (TimerPeriod != DEFAULT_LAGACY_TIMER_TICK_DURATION) {
|
|
||||||
Status = Timer->SetTimerPeriod (
|
|
||||||
Timer,
|
|
||||||
DEFAULT_LAGACY_TIMER_TICK_DURATION
|
|
||||||
);
|
|
||||||
if (EFI_ERROR (Status)) {
|
|
||||||
return Status;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// If booting to a legacy OS then force HDD drives to the appropriate
|
// If booting to a legacy OS then force HDD drives to the appropriate
|
||||||
// boot mode by calling GetIdeHandle.
|
// boot mode by calling GetIdeHandle.
|
||||||
|
|
Loading…
Reference in New Issue