mirror of https://github.com/acidanthera/audk.git
MdeModulePkg XhciPei: Initialize ScratchPhy and ScratchEntryPhy in XhcPeiInitSched().
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15635 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
414f5bd1d7
commit
60050b31bc
|
@ -2618,6 +2618,7 @@ XhcPeiInitSched (
|
|||
ASSERT (ScratchEntry != NULL);
|
||||
Xhc->ScratchEntry = ScratchEntry;
|
||||
|
||||
ScratchPhy = 0;
|
||||
Status = UsbHcAllocateAlignedPages (
|
||||
EFI_SIZE_TO_PAGES (MaxScratchpadBufs * sizeof (UINT64)),
|
||||
Xhc->PageSize,
|
||||
|
@ -2633,6 +2634,7 @@ XhcPeiInitSched (
|
|||
// Allocate each scratch buffer
|
||||
//
|
||||
for (Index = 0; Index < MaxScratchpadBufs; Index++) {
|
||||
ScratchEntryPhy = 0;
|
||||
Status = UsbHcAllocateAlignedPages (
|
||||
EFI_SIZE_TO_PAGES (Xhc->PageSize),
|
||||
Xhc->PageSize,
|
||||
|
|
Loading…
Reference in New Issue