Changeset 279952c in mainline


Ignore:
Timestamp:
2006-06-13T11:31:26Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b45c443
Parents:
f3a3f0d7
Message:

Fixed frame allocator to allocate correct number of frames for configuration.
(It couldn't fail before, but in some circumstances it could allocate more
then needed).

File:
1 edited

Legend:

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

    rf3a3f0d7 r279952c  
    705705
    706706        cframes = SIZE2FRAMES(zone_conf_size(zone2->base+zone2->count-zone1->base));
    707         order = fnzb(cframes) + 1;
     707        if (cframes == 1)
     708                order = 0;
     709        else
     710                order = fnzb(cframes - 1) + 1;
    708711
    709712        /* Allocate zonedata inside one of the zones */
Note: See TracChangeset for help on using the changeset viewer.