summaryrefslogtreecommitdiff
path: root/StdLib
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2018-03-15 12:45:43 +0800
committerStar Zeng <star.zeng@intel.com>2018-03-16 15:01:12 +0800
commit36f2f049a83d82f7c0c847202c9ce2974492c1ab (patch)
treee543b56369bf88eebc988685439c6fda82729437 /StdLib
parent883787a2c6f83a59fa56f9529317aa86be71fe91 (diff)
downloadedk2-36f2f049a83d82f7c0c847202c9ce2974492c1ab.zip
edk2-36f2f049a83d82f7c0c847202c9ce2974492c1ab.tar.gz
edk2-36f2f049a83d82f7c0c847202c9ce2974492c1ab.tar.bz2
MdeModulePkg/Core: fix bits operation error on a boundary condition
If given address is on 64K boundary and the requested bit number is 64, all SetBits(), ClearBits() and GetBits() will encounter ASSERT problem in trying to do a 64 bits of shift, which is not allowed by LShift() and RShift(). This patch tries to fix this issue by turning bits operation into whole integer operation in such situation. Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'StdLib')
0 files changed, 0 insertions, 0 deletions