Changeset 40c8c17 in mainline for kernel/arch/ppc32/src/mm/frame.c


Ignore:
Timestamp:
2011-11-26T21:37:40Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
38ff925
Parents:
056ddc30
Message:

Replace multiple definitions of last_frame with config.physmem_end.
Do not duplicate code which calculates the end of physical memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/mm/frame.c

    r056ddc30 r40c8c17  
    4040#include <print.h>
    4141
    42 // XXX: remove me
    43 uintptr_t last_frame = 0;
    44 
    4542memmap_t memmap;
    4643
     
    6764                size_t size = ALIGN_DOWN(memmap.zones[i].size -
    6865                    (base - ((uintptr_t) memmap.zones[i].start)), FRAME_SIZE);
    69                
    70                 // XXX: remove me
    71                 if (last_frame < ALIGN_UP(base + size, FRAME_SIZE))
    72                         last_frame = ALIGN_UP(base + size, FRAME_SIZE);
    7366               
    7467                if (!frame_adjust_zone_bounds(low, &base, &size))
Note: See TracChangeset for help on using the changeset viewer.