Changeset 40c8c17 in mainline for kernel/arch/arm32/src


Ignore:
Timestamp:
2011-11-26T21:37:40Z (14 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.

Location:
kernel/arch/arm32/src/mm
Files:
2 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
  • kernel/arch/arm32/src/mm/page.c

    r056ddc30 r40c8c17  
    5858       
    5959        uintptr_t cur;
     60
    6061        /* Kernel identity mapping */
    6162        for (cur = PHYSMEM_START_ADDR;
    62             cur < min(config.identity_base, last_frame); cur += FRAME_SIZE)
     63            cur < min(config.identity_size, config.physmem_end);
     64            cur += FRAME_SIZE)
    6365                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    6466       
Note: See TracChangeset for help on using the changeset viewer.