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=9818aeac330907b5b314ac58c861d3dba8b15e5e;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