Now exports the calls of the boot loader heap no longer the platform dependent

bindings - we are now using stdlib's malloc()/free() directly instead.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4634 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-09-12 01:16:38 +00:00
parent 6b770349d5
commit fa89d1f6f3
+6 -15
View File
@@ -4,26 +4,17 @@
*/ */
#include <boot/platform.h> #include <boot/heap.h>
#include <stdlib.h>
#define HEAP_SIZE 32768
extern "C" void
platform_release_heap(void *base)
{
free(base);
}
extern "C" status_t extern "C" status_t
platform_init_heap(struct stage2_args *args, void **_base, void **_top) heap_init(struct stage2_args *args)
{ {
*_base = malloc(HEAP_SIZE);
*_top = (void *)((uint8 *)*_base + HEAP_SIZE);
return B_OK; return B_OK;
} }
extern "C" void
heap_release(void)
{
}