david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/core/heap.c

28 lines
365 B
C
Raw Normal View History

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