Mercurial > sos > sos
view include/os/heap.h @ 116:967a56b96d13
first attempt at redoing malloc, seems to work. The program level is not currently functional.
author | Jonathan Pevarnek <pevarnj@gmail.com> |
---|---|
date | Sun, 12 Jun 2011 10:09:39 -0400 |
parents | |
children | eb69d1caa83b |
line wrap: on
line source
#ifndef __HEAP_H #define __HEAP_H #include <memHead.h> #define PageSize 4096 void heap_init(size_t memSize); void* allocHeap(size_t size, size_t *ammt); void freeHeap(void *ptr); #endif