Skip to content
Commit 1e2a4ad0 authored by Abdul Lateef Attar's avatar Abdul Lateef Attar Committed by Isaac Oram
Browse files

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: default avatarAbdul Lateef Attar <abdattar@amd.com>
Reviewed-by: default avatar: Isaac Oram <isaac.w.oram@intel.com>
parent 3b368b33
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment