Current implementation uses following two methods
EnableNullDetection()
DisableNullDetection()
to enable/disable page 0. These two methods will check PCD
PcdNullPointerDetectionPropertyMask to know if the page 0 is disabled or not.
This is due to the fact that old GCD service doesn't provide paging related
attributes of memory block. Since this issue has been fixed, GCD services
can be used to determine the paging status of page 0. This is also make it
possible to just use a new macro
ACCESS_PAGE0_CODE(
<code accessing page 0>
);
to replace above methods to do the same job, which also makes code more
readability.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
80 lines
2.4 KiB
INI
80 lines
2.4 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
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
KeyboardDxeExtra.uni
|