Re: [edk2] [PATCH] UefiCpuPkg/MtrrLib: Use SetMem instead of SetMem64 to fix hang

2017-10-23 Thread Dong, Eric
Reviewed-by: Eric Dong > -Original Message- > From: Ni, Ruiyu > Sent: Monday, October 23, 2017 1:12 PM > To: edk2-devel@lists.01.org > Cc: Dong, Eric > Subject: [PATCH] UefiCpuPkg/MtrrLib: Use SetMem instead of SetMem64 to > fix hang > >

[edk2] [PATCH] UefiCpuPkg/MtrrLib: Use SetMem instead of SetMem64 to fix hang

2017-10-22 Thread Ruiyu Ni
ClearMasks and OrMasks are not 8-byte aligned. But SetMem64 requires the input address is 8-byte aligned. If the input is not 8-byte aligned, assertion is hit. Use SetMem instead. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Eric Dong