From 3883ccb0a0c6ce11fcbc9bde29733e31e1bf0f99 Mon Sep 17 00:00:00 2001 From: laokz <2653412+laokz@user.noreply.gitee.com> Date: Sat, 17 Oct 2020 23:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DLOS=5FBitmapSetNBits=E8=AF=AF?= =?UTF-8?q?=E5=B0=86=E4=BD=8D=E6=95=B0=E5=BD=93=E4=BD=9C=E4=BD=8D=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/base/core/los_bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/base/core/los_bitmap.c b/kernel/base/core/los_bitmap.c index 937084cd..ae62a47c 100644 --- a/kernel/base/core/los_bitmap.c +++ b/kernel/base/core/los_bitmap.c @@ -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;