]> git.proxmox.com Git - mirror_edk2.git/commit - SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.inf
SourceLevelDebugPkg/DebugCommLibUsb3Pei: Make sure alloc physical mem
authorStar Zeng <star.zeng@intel.com>
Thu, 31 Aug 2017 08:53:16 +0000 (16:53 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 4 Sep 2017 02:37:46 +0000 (10:37 +0800)
commit364f63c06533a4de83e6f35ee698700bb24f735f
tree35aa294c39f046cff4eeeaf51f98fdde6c8cdeb1
parentc00ad62378b1594c9af0f9ebbcc2e30d05a2121e
SourceLevelDebugPkg/DebugCommLibUsb3Pei: Make sure alloc physical mem

PI 1.6 has supported pre permanent memory page allocation,
to make sure the allocated memory is physical memory for DMA,
the patch is to check memory discovered PPI installed or not first
before calling AllocatePages.

Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.c
SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Pei.inf