audk/IntelFrameworkModulePkg/Csm/LegacyBiosDxe
Jian J Wang 2ea3576e16 IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0
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>
2017-12-08 14:38:45 +08:00
..
IA32 IntelFrameworkModulePkg LegacyBiosDxe: Convert Ia32/InterruptTable.asm to NASM 2016-06-28 09:52:20 +08:00
Ipf IntelFrameworkModulePkg: Fix typos in comments 2016-10-24 09:09:06 +08:00
X64 IntelFrameworkModulePkg LegacyBiosDxe: Convert X64/InterruptTable.asm to NASM 2016-06-28 09:52:20 +08:00
LegacyBbs.c When CSM uses EFI_SEGMENT and EFI_OFFSET to call CSM16 function, some CSM16 use es:[offset + 0xabcd] to get data passed from CSM32, offset + 0xabcd could exceed 0xFFFF which is invalid in real mode. So added NORMALIZE_EFI_SEGMENT and NORMALIZE_EFI_OFFSET to keep offset as small as possible to avoid this issue during CSM16 function call. 2012-03-01 11:16:42 +00:00
LegacyBda.c IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacyBios.c IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacyBiosDxe.inf IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacyBiosDxe.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
LegacyBiosDxeExtra.uni IntelFrameworkModulePkg: Convert all .uni files to utf-8 2015-12-15 04:52:33 +00:00
LegacyBiosInterface.h IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacyBootSupport.c IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacyCmos.c IntelFrameworkModulePkg: Add Compatibility Support Module (CSM) drivers 2011-06-27 23:32:56 +00:00
LegacyIde.c Fix GCC44 build failure. 2012-11-21 03:03:32 +00:00
LegacyPci.c IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00
LegacySio.c IntelFrameworkModulePkg/LegacyBios: Fix legacy serial redirection bug 2016-11-10 10:19:54 +08:00
Thunk.c IntelFrameworkModulePkg/LegacyBios: Use macro to enable/disable page 0 2017-12-08 14:38:45 +08:00