]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Core/Dxe: Add EndOfDxe workaround for NULL pointer detection
authorJian J Wang <jian.j.wang@intel.com>
Mon, 9 Oct 2017 13:58:55 +0000 (21:58 +0800)
committerEric Dong <eric.dong@intel.com>
Wed, 11 Oct 2017 08:39:01 +0000 (16:39 +0800)
commita7181d952fcd0b03c423cef99b6e8bf93d9cb1f1
tree700c32b1c52c51fbf740a1d7d5a62b6ea459e4d8
parent9189ec20b9e22fe1ec61caefa47a3b3a3cad23a3
MdeModulePkg/Core/Dxe: Add EndOfDxe workaround for NULL pointer detection

One of issue caused by enabling NULL pointer detection is that some PCI
device OptionROM, binary drivers and binary OS boot loaders may have NULL
pointer access bugs, which will prevent BIOS from booting and is almost
impossible to fix. BIT7 of PCD PcdNullPointerDetectionPropertyMask is used
as a workaround to indicate BIOS to disable NULL pointer detection right
after event gEfiEndOfDxeEventGroupGuid, and then let boot continue.

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: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Core/Dxe/DxeMain.inf
MdeModulePkg/Core/Dxe/Mem/Page.c
MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c