Changeset 40c8c17 in mainline for kernel/arch/arm32/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/arm32/src/mm/frame.c

    r056ddc30 r40c8c17  
    4141#include <macros.h>
    4242
    43 // TODO: remove me
    44 /** Address of the last frame in the memory. */
    45 uintptr_t last_frame = 0;
    46 
    4743static void frame_common_arch_init(bool low)
    4844{
     
    7470void frame_low_arch_init(void)
    7571{
    76         uintptr_t mem_start;
    77         size_t mem_size;
    78 
    79         machine_get_memory_extents(&mem_start, &mem_size);
    80         // TODO: remove me
    81         last_frame = ALIGN_DOWN(mem_start + mem_size, FRAME_SIZE);
    82        
    8372        frame_common_arch_init(true);
    8473
Note: See TracChangeset for help on using the changeset viewer.