Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions | Variables
memRegionInit.c File Reference
#include <kernel.h>
#include <mips.h>
#include <memory.h>
#include <safemem.h>

Functions

void memRegionInit (void *memory_start, uint memory_size)
 

Variables

struct memregion * regtab
 
struct memregion * regfreelist
 
struct memregion * regalloclist
 

Detailed Description

Initializes system memory for region allocator.

Function Documentation

void memRegionInit ( void *  memory_start,
uint  memory_size 
)

Initialize free memory into page aligned regions. Takes necessary overhead of region table for the amount of memory on platform.

Parameters
memory_startBase address of heap space.