Legacy has to access interrupt vector, BDA, etc. located in memory between 0-4095. To allow as much code as possible to be monitored by NULL pointer detection, we add code to temporarily disable this feature right before those memory access and enable it again afterwards. Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Ayellet Wolman <ayellet.wolman@intel.com> Suggested-by: Ayellet Wolman <ayellet.wolman@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
81 lines
2.5 KiB
INI
81 lines
2.5 KiB
INI
## @file
|
|
# Ps2 Keyboard driver.
|
|
#
|
|
# Ps2 Keyboard driver by using Legacy Bios protocol service and IsaIo protocol
|
|
# service. This dirver uses legacy INT16 to get the key stroke status.
|
|
#
|
|
# Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions
|
|
# of the BSD License which accompanies this distribution. The
|
|
# full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = KeyboardDxe
|
|
MODULE_UNI_FILE = KeyboardDxe.uni
|
|
FILE_GUID = 5479662B-6AE4-49e8-A6BD-6DE4B625811F
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = InitializeBiosKeyboard
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
|
#
|
|
# DRIVER_BINDING = gBiosKeyboardDriverBinding
|
|
# COMPONENT_NAME = gBiosKeyboardComponentName
|
|
#
|
|
|
|
[Sources]
|
|
ComponentName.c
|
|
ComponentName.h
|
|
BiosKeyboard.c
|
|
BiosKeyboard.h
|
|
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
IntelFrameworkPkg/IntelFrameworkPkg.dec
|
|
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
|
|
|
|
|
[LibraryClasses]
|
|
MemoryAllocationLib
|
|
UefiBootServicesTableLib
|
|
UefiDriverEntryPoint
|
|
ReportStatusCodeLib
|
|
BaseMemoryLib
|
|
UefiLib
|
|
DebugLib
|
|
BaseLib
|
|
PcdLib
|
|
DxeServicesTableLib
|
|
|
|
[Protocols]
|
|
gEfiIsaIoProtocolGuid ## TO_START
|
|
gEfiSimpleTextInProtocolGuid ## BY_START
|
|
gEfiSimpleTextInputExProtocolGuid ## BY_START
|
|
gEfiLegacyBiosProtocolGuid ## CONSUMES
|
|
gEfiPs2PolicyProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
[FeaturePcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPs2KbdExtendedVerification|FALSE ## CONSUMES
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFastPS2Detection ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask ## CONSUMES
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
KeyboardDxeExtra.uni
|