Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset adb252c0 in mainline


Ignore:
Timestamp:
2013-09-11T18:11:27Z (8 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
cb500a2
Parents:
d5f774f6
Message:

initialize the zone bitmap properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/frame.c

    rd5f774f6 radb252c0  
    412412            BITMAP_BLOCK_SIZE, confdata +
    413413            (sizeof(frame_t) * zones.info[z1].count));
     414        bitmap_clear_range(&zones.info[z1].bitmap, 0, zones.info[z1].count);
    414415       
    415416        zones.info[z1].frames = (frame_t *) confdata;
     
    579580                bitmap_initialize(&zone->bitmap, count, BITMAP_BLOCK_SIZE,
    580581                    confdata + (sizeof(frame_t) * count));
     582                bitmap_clear_range(&zone->bitmap, 0, count);
    581583               
    582584                /*
     
    830832               
    831833                if (!THREAD)
    832                         panic("Cannot wait for memory to become available.");
     834                        panic("Cannot wait for %zu frames to become available "
     835                            "(%zu available).", count, avail);
    833836               
    834837                /*
     
    837840               
    838841#ifdef CONFIG_DEBUG
    839                 printf("Thread %" PRIu64 " waiting for %zu frames, "
    840                     "%zu available.\n", THREAD->tid, count, avail);
     842                printf("Thread %" PRIu64 " waiting for %zu frames "
     843                    "(%zu available).\n", THREAD->tid, count, avail);
    841844#endif
    842845               
Note: See TracChangeset for help on using the changeset viewer.