Syllable Internal Functions: Memory


Functions

status_t AllocateHeapMem (MemHeader_s *psHeader, uint32 *pnAddress, bool bExactAddress, bool bHighest, uint32 nSize)
 Allocates memory for a new memory heap.
status_t FreeHeapMem (MemHeader_s *psHeader, uint32 nAddress)
 Frees memory from the specified memory heap.
void init_pages (uint32 nFirstUsablePage)
 Initializes the structures necessary for allocating pages.

Function Documentation

status_t AllocateHeapMem ( MemHeader_s *  psHeader,
uint32 *  pnAddress,
bool  bExactAddress,
bool  bHighest,
uint32  nSize 
)

Allocates memory for a new memory heap.

For internal use only.

Parameters:
psHeader the memory pool to use.
pnAddress a pointer to the address of the memory to use; only used if bExactAddress is true. Will be set to the real address if the call is successful.
bExactAddress true to use pnAddress.
bHighest if true then the memory at the highest address will be returned.
nSize the size in bytes to allocate.
Returns:
0 if successful.
See also:
FreeHeapMem()
Author:
Arno Klenke ([email protected])

status_t FreeHeapMem ( MemHeader_s *  psHeader,
uint32  nAddress 
)

Frees memory from the specified memory heap.

For internal use only.

Parameters:
psHeader the memory pool to use.
nAddress the address of the memory to free.
Returns:
0 if successful.
See also:
AllocateHeapMem()
Author:
Arno Klenke ([email protected])

void init_pages ( uint32  nFirstUsablePage  ) 

Initializes the structures necessary for allocating pages.

Called by init_kernel() (init.c).

For internal use only.

Parameters:
nFirstUsablePage - The address of the first usable page. This parameter is set to the end of the kernel image.
Author:
Kurt Skauen ([email protected])


Generated on Sat May 9 22:55:14 2009 for Syllable Private Functions by  doxygen 1.5.1