Changeset 71eef11 in mainline for kernel/arch/ia64/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/ia64/src/mm/frame.c

    r1b067315 r71eef11  
    4242 * for real ia64 systems that provide memory map.
    4343 */
     44#define MEMORY_SIZE     (512 * 1024 * 1024)
    4445#define ROM_BASE        0xa0000
    45 #define ROM_SIZE        (384*1024)
     46#define ROM_SIZE        (384 * 1024)
    4647
    4748void frame_arch_init(void)
    4849{
    49         zone_create(0, config.memory_size >> FRAME_WIDTH, 1, 0);
     50        zone_create(0, SIZE2FRAMES(MEMORY_SIZE), 1, 0);
    5051       
    5152        /*
    5253         * Blacklist ROM regions.
    5354         */
    54         frame_mark_unavailable(ADDR2PFN(ROM_BASE), ROM_SIZE >> FRAME_WIDTH);
     55        frame_mark_unavailable(ADDR2PFN(ROM_BASE), SIZE2FRAMES(ROM_SIZE));
    5556}
    5657
Note: See TracChangeset for help on using the changeset viewer.