Changeset 939dfd7 in mainline for arch/mips32/src/mm/frame.c


Ignore:
Timestamp:
2005-12-09T18:29:34Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
705b4149
Parents:
ef0e259
Message:

Added MIPS ARC memory initializaiton.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/frame.c

    ref0e259 r939dfd7  
    3434#include <panic.h>
    3535#include <print.h>
     36#include <arch/drivers/arc.h>
    3637
     38/** Create memory zones
     39 *
     40 * If ARC is known, read information from ARC, otherwise
     41 * assume some defaults.
     42 * - blacklist first FRAME because there is an exception vector
     43 */
    3744void frame_arch_init(void)
    3845{
    39         zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS), config.memory_size & ~(FRAME_SIZE-1));
     46        /* Blacklist first 4KB, exception vector */
     47        frame_region_not_free(0, FRAME_SIZE);
     48
     49        if (arc_enabled())
     50                arc_frame_init();
     51        else
     52                zone_create_in_region(KA2PA(KERNEL_LOAD_ADDRESS),
     53                                      config.memory_size & ~(FRAME_SIZE-1));
    4054}
Note: See TracChangeset for help on using the changeset viewer.