From: Ben Pfaff Date: Fri, 31 Dec 2004 01:20:32 +0000 (+0000) Subject: Fix brown-bag error. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afcaf15173eae6e85369d30de194ce1111da9454;p=pintos-anon Fix brown-bag error. --- diff --git a/src/lib/kernel/bitmap.c b/src/lib/kernel/bitmap.c index 88a5e7e..9dfded5 100644 --- a/src/lib/kernel/bitmap.c +++ b/src/lib/kernel/bitmap.c @@ -164,7 +164,7 @@ void bitmap_reset (struct bitmap *b, size_t bit_idx) { size_t idx = elem_idx (bit_idx); - elem_type mask = bit_mask (idx); + elem_type mask = bit_mask (bit_idx); /* This is equivalent to `b->bits[idx] &= ~mask' except that it is guaranteed to be atomic on a uniprocessor machine. See @@ -179,7 +179,7 @@ void bitmap_flip (struct bitmap *b, size_t bit_idx) { size_t idx = elem_idx (bit_idx); - elem_type mask = bit_mask (idx); + elem_type mask = bit_mask (bit_idx); /* This is equivalent to `b->bits[idx] ^= mask' except that it is guaranteed to be atomic on a uniprocessor machine. See