修复LOS_BitmapSetNBits误将位数当作位模式的错误

This commit is contained in:
laokz 2020-10-17 23:25:24 +08:00 committed by Gitee
parent 3425568551
commit 3883ccb0a0
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ VOID LOS_BitmapSetNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsSet)
UINTPTR maskToSet = BITMAP_FIRST_WORD_MASK(start);
while (numsSet > bitsToSet) {
*p |= bitsToSet;
*p |= maskToSet;
numsSet -= bitsToSet;
bitsToSet = BITMAP_BITS_PER_WORD;
maskToSet = OS_BITMAP_WORD_MASK;