Changeset 84dd253 in mainline for arch/ppc32/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/ppc32/src/mm/frame.c

    rfcacfb7 r84dd253  
    2929#include <arch/mm/frame.h>
    3030#include <mm/frame.h>
     31#include <config.h>
     32#include <panic.h>
    3133
    3234void frame_arch_init(void)
    3335{
     36        zone_t *z;
     37
     38        z = zone_create(0, config.memory_size & ~(FRAME_SIZE-1), 0);
     39        if (!z) {
     40                panic("Can't allocate zone (%dB).\n", config.memory_size & ~(FRAME_SIZE-1));
     41        }
     42        zone_attach(z);
    3443}
Note: See TracChangeset for help on using the changeset viewer.