BoardModulePkg: Copy device path before processing
GCC compiler puts the DevicePath PCDs to the read-only section. During boot if try to process the device path after PtrGetPtr it throws a page fault exception. Hence making a local copy using DuplicateDevicePath() to avoid the page fault exception. Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by:Abdul Lateef Attar <abdattar@amd.com> Reviewed-by:
: Isaac Oram <isaac.w.oram@intel.com>
Loading
Please register or sign in to comment