2012-06-23 20:08:56 +02:00
|
|
|
#include "utils.h"
|
|
|
|
#include "memory.h"
|
|
|
|
#include "HW.h"
|
|
|
|
|
|
|
|
#ifndef _ALLOC_
|
|
|
|
#define _ALLOC_
|
|
|
|
|
2012-08-09 02:17:50 +02:00
|
|
|
#define _AHEAP_SIZE_TOTAL 0x4000
|
2012-06-23 20:08:56 +02:00
|
|
|
#define _AHEAP_INFO_SIZE 0x0100
|
|
|
|
#define _AHEAP_SIZE _AHEAP_SIZE_TOTAL-_AHEAP_INFO_SIZE
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
u8 *Offset;
|
|
|
|
u32 Size;
|
|
|
|
} HeapInfoEntry;
|
|
|
|
|
2012-08-09 02:17:50 +02:00
|
|
|
void HeapInit( void );
|
2012-06-23 20:08:56 +02:00
|
|
|
void *malloc( u32 size );
|
|
|
|
void *malloca( u32 size, u32 align );
|
|
|
|
void free( void *ptr );
|
|
|
|
|
|
|
|
#endif
|