audk/IntelFrameworkPkg/Include/Protocol
Jian J Wang 7619eed8aa IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access
Due to the introduction of NULL pointer detection feature, page 0 will be
disabled if the feature is enabled, which will cause legacy code failed to
update legacy data in page 0. This macro is introduced to make sure the
page 0 is enabled before those code and restore the original status of it
afterwards.

Another reason to introduce this macro is to eliminate the dependency on
the PcdNullPointerDetectionPropertyMask. Because this is a new PCD, it
could cause some backward compatibility issue for some old packages.

This macro will simply check if the page 0 is disabled or not. If it's
disabled, it will enable it before code updating page 0 and disable it
afterwards. Otherwise, this macro will do nothing to page 0.

The usage of the macro will be look like (similar to DEBUG_CODE macro):

    ACCESS_PAGE0_CODE(
      <code accessing page 0>
    );

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:44 +08:00
..
AcpiS3Save.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
AcpiSupport.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
BootScriptSave.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
CpuIo.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
DataHub.h Add comment that describes the TPL restrictions for the Data Hub Protocol. 2010-11-05 20:29:16 +00:00
FirmwareVolume.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
FrameworkFirmwareVolumeBlock.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
FrameworkFormBrowser.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
FrameworkFormCallback.h IntelFrameworkPkg: Fix typos in comments 2016-10-24 09:09:26 +08:00
FrameworkHii.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
FrameworkMpService.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
Legacy8259.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
LegacyBios.h IntelFrameworkPkg/LegacyBios.h: Add a macro to guarantee page 0 access 2017-12-08 14:38:44 +08:00
LegacyBiosPlatform.h Correct comments for EFI_LEGACY_PIRQ_ENTRY. 2011-01-31 02:37:03 +00:00
LegacyInterrupt.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
LegacyRegion.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SectionExtraction.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmAccess.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmBase.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmControl.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmCpuIo.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmCpuSaveState.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmGpiDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmIchnDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmPeriodicTimerDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmPowerButtonDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmStandbyButtonDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmSwDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmSxDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00
SmmUsbDispatch.h Update the copyright notice format 2010-04-23 15:52:13 +00:00