Changeset 71eef11 in mainline for kernel/arch/arm32/src/mm/frame.c


Ignore:
Timestamp:
2008-02-06T14:24:13Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7208b6c
Parents:
1b067315
Message:

remove config.memory_size, get_memory_size() and memory_init.{c|d}
the amount of available memory can be calculated from the sizes of the zones
add FRAMES2SIZE, SIZE2KB and SIZE2MB functions/macros (code readability)

File:
1 edited

Legend:

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

    r1b067315 r71eef11  
    3636#include <mm/frame.h>
    3737#include <arch/mm/frame.h>
     38#include <arch/machine.h>
    3839#include <config.h>
    3940#include <arch/debug/print.h>
     
    4647{
    4748        /* all memory as one zone */
    48         zone_create(0, ADDR2PFN(config.memory_size),
     49        zone_create(0, ADDR2PFN(machine_get_memory_size()),
    4950            BOOT_PAGE_TABLE_START_FRAME + BOOT_PAGE_TABLE_SIZE_IN_FRAMES, 0);
    50         last_frame = config.memory_size;
     51        last_frame = machine_get_memory_size();
    5152
    5253        /* blacklist boot page table */
Note: See TracChangeset for help on using the changeset viewer.