Changeset 77b52f0 in mainline for kernel/generic/src/mm/frame.c


Ignore:
Timestamp:
2012-03-07T16:09:02Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
609cbf8
Parents:
161fbda
Message:

kernel/frame, arm32/page: PA might start on other addresses than 0, handle it.

Add comments about possible issues.

File:
1 edited

Legend:

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

    r161fbda r77b52f0  
    12821282bool frame_adjust_zone_bounds(bool low, uintptr_t *basep, size_t *sizep)
    12831283{
    1284         uintptr_t limit = config.identity_size;
     1284        // FIXME: This might lead to overflow if the identity_size is too big
     1285        // but it is necessary if the PA identity_base > identity_size
     1286        const uintptr_t limit =
     1287            KA2PA(config.identity_base) + config.identity_size;
    12851288
    12861289        if (low) {
Note: See TracChangeset for help on using the changeset viewer.