Changeset 9ebc238 in mainline for generic/src/mm/frame.c


Ignore:
Timestamp:
2005-12-04T21:02:53Z (20 years ago)
Author:
Sergey Bondari <bondari@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4457455
Parents:
cf585c9
Message:

Minor bugfix caused by invalid frame_region_not_free() usage

File:
1 edited

Legend:

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

    rcf585c9 r9ebc238  
    3939#include <arch.h>
    4040#include <print.h>
     41#include <align.h>
    4142
    4243spinlock_t zone_head_lock;       /**< this lock protects zone_head list */
     
    6364        if (config.cpu_active == 1) {
    6465                zone_init();
    65                 frame_region_not_free(config.base, config.base + config.kernel_size + CONFIG_STACK_SIZE);
     66                frame_region_not_free(config.base, config.kernel_size);
    6667        }
    6768
     
    212213       
    213214        if (size % FRAME_SIZE != 0) {
    214                 size = size + (FRAME_SIZE - size % FRAME_SIZE);
     215                size = ALIGN(size, FRAME_SIZE);
    215216        }
    216217        ASSERT(size % FRAME_SIZE == 0);
Note: See TracChangeset for help on using the changeset viewer.