修复LOS_BitmapSetNBits误将位数当作位模式的错误
This commit is contained in:
parent
3425568551
commit
3883ccb0a0
|
@ -92,7 +92,7 @@ VOID LOS_BitmapSetNBits(UINTPTR *bitmap, UINT32 start, UINT32 numsSet)
|
||||||
UINTPTR maskToSet = BITMAP_FIRST_WORD_MASK(start);
|
UINTPTR maskToSet = BITMAP_FIRST_WORD_MASK(start);
|
||||||
|
|
||||||
while (numsSet > bitsToSet) {
|
while (numsSet > bitsToSet) {
|
||||||
*p |= bitsToSet;
|
*p |= maskToSet;
|
||||||
numsSet -= bitsToSet;
|
numsSet -= bitsToSet;
|
||||||
bitsToSet = BITMAP_BITS_PER_WORD;
|
bitsToSet = BITMAP_BITS_PER_WORD;
|
||||||
maskToSet = OS_BITMAP_WORD_MASK;
|
maskToSet = OS_BITMAP_WORD_MASK;
|
||||||
|
|
Loading…
Reference in New Issue