2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-19 14:03:21 +00:00
xNBA/src/core/heap.c

28 lines
358 B
C
Raw Normal View History

#include <malloc.h>
#include <gpxe/heap.h>
/**
* @file
*
* Heap
*
*/
2005-05-13 11:24:02 +00:00
/**
* Heap size
*
* Currently fixed at 48kB.
*/
#define HEAP_SIZE ( 48 * 1024 )
2005-05-13 11:24:02 +00:00
/** The heap itself */
char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));
/**
* Initialise the heap
*
*/
void init_heap ( void ) {
mpopulate ( heap, sizeof ( heap ) );
}