Changeset 2032 for Whitix/trunk

Show
Ignore:
Timestamp:
04/02/09 21:33:02 (3 years ago)
Author:
mwhitworth
Message:

Use BitTest rather than BmapGetBit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/memory/pg_alloc.c

    r1753 r2032  
    104104                pageArray[i].physAddr=i << 12; 
    105105 
    106                 if (!BmapGetBit(allocatedBitmap, i)) 
     106                if (!BitTest(allocatedBitmap, i)) 
    107107                { 
    108108                        ListAdd(&pageArray[i].list, &isa.list); 
     
    122122                        pageArray[i].physAddr=i << 12; 
    123123 
    124                         if (i >= 5120 || (i < 5120 && !BmapGetBit(allocatedBitmap, i))) 
     124                        if (i >= 5120 || (i < 5120 && !BitTest(allocatedBitmap, i))) 
    125125                        { 
    126126                                ListAdd(&pageArray[i].list, &normal.list); 
     
    245245        while (size) 
    246246        { 
    247                 BmapSetBit(allocatedBitmap, (start >> 12), true); 
     247                BitSet(allocatedBitmap, (start >> 12)); 
    248248                start+=PAGE_SIZE; 
    249249                size-=PAGE_SIZE;