Changeset 84dd253 in mainline for arch/mips32/src/mm/frame.c


Ignore:
Timestamp:
2005-09-21T13:37:50Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aed4eca
Parents:
fcacfb7
Message:

Physical memory management work.
New frame allocator.
Some architectures need to have bigger heap.

File:
1 edited

Legend:

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

    rfcacfb7 r84dd253  
    3131#include <arch/asm/boot.h>
    3232#include <arch/mm/page.h>
     33#include <config.h>
     34#include <panic.h>
    3335
    3436void frame_arch_init(void)
    3537{
     38        zone_t *z;
     39       
     40        z = zone_create(0, config.memory_size, 0);
     41        if (!z) {
     42                panic("Can't allocate zone (%dB).\n", config.memory_size);
     43        }
     44        zone_attach(z);
     45
    3646        /* Disable Everything until load address */
    3747        frame_region_not_free(0, KA2PA(KERNEL_LOAD_ADDRESS));
Note: See TracChangeset for help on using the changeset viewer.