Files
ipxe/src/core/heap.c
2007-02-01 07:22:13 +00:00

28 lines
365 B
C

#include <gpxe/malloc.h>
#include <gpxe/heap.h>
/**
* @file
*
* Heap
*
*/
/**
* Heap size
*
* Currently fixed at 128kB.
*/
#define HEAP_SIZE ( 128 * 1024 )
/** The heap itself */
char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));
/**
* Initialise the heap
*
*/
void init_heap ( void ) {
mpopulate ( heap, sizeof ( heap ) );
}