Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: c6720db5ddffec747bb0b2830e528511b1a4bfb2 https://github.com/tianocore/edk2/commit/c6720db5ddffec747bb0b2830e528511b1a4bfb2 Author: jdzhang <jdzh...@kunluntech.com.cn> Date: 2022-10-20 (Thu, 20 Oct 2022)
Changed paths: M MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c M MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.h M MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c Log Message: ----------- MdeModulePkg/XhciDxe: Add boundary check for TRB ring allocation According the Xhci Spec, TRB Rings may be larger than a Page, however they shall not cross a 64K byte boundary, so add a parameter to indicate whether the memory allocation is for TRB Rings or not. It will ensure the allocation not crossing 64K boundary in UsbHcAllocMemFromBlock if the memory is allocated for TRB Rings. Signed-off-by: jdzhang <jdzh...@kunluntech.com.cn> Reviewed-by: Hao A Wu <hao.a...@intel.com> _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits