blob: 213e51d851f444887ed97c39cc8197304a0bf257 [file] [log] [blame]
#include <common.h>
#include <malloc.h>
void *memalign(size_t alignment, size_t bytes)
{
unsigned long mem = (unsigned long)sbrk(bytes + alignment);
mem = (mem + alignment) & ~(alignment - 1);
return (void *)mem;
}
void *malloc(size_t size)
{
return memalign(8, size);
}
void free(void *ptr)
{
}
void *realloc(void *ptr, size_t size)
{
BUG();
}